@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --theme-primary-rgb: 207, 23, 35;
    --theme-primary: #ADCF17;
    --theme-primary-300: #f08187;
    --theme-primary-500: #ADCF17;
    --theme-primary-700: #a70d1b;
    --theme-primary-800: #7e0914;
    --theme-primary-dark: #7e0914;
    --theme-primary-soft: rgba(207, 23, 35, 0.1);
    --theme-cyan: #88cce7;
    --theme-dark: #4a171d;
    --theme-dark-soft: #80353a;
    --theme-surface: #ffffff;
    --theme-surface-soft: #f5fbfe;
    --theme-text: #4a171d;
    --theme-muted: #7c6769;
    --theme-border: rgba(126, 9, 20, 0.1);
    --theme-shadow: 0 24px 48px rgba(126, 9, 20, 0.11);
    --theme-radius: 28px;
    --theme-accent-500: #e8212d;
    --theme-tint: #fff2f1;
    --theme-bg: #f3fbfe;
    --theme-success-bg: #edf7f0;
    --theme-success-500: #2f7c59;
    --theme-danger-bg: #fff0eb;
    --theme-danger-500: #b55b4b;
    --theme-info-bg: #eaf8fd;
    --theme-info-500: #2d89ad;
}

body,
.form-group input,
.form-group select,
.amount-input,
.transaction-form input[type='number'],
.transaction-form input[type='text'],
.card-form input,
.change-password-form input,
.recharge-form input[type='number'] {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

h1,
h2,
h3,
h4,
.app-title,
.home-headline,
.auth-hero h2,
.auth-heading h3,
.quick-start-title,
.profile-total-assets strong,
.task-focus-title,
.summary-board-head strong,
.form-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
}

body {
    background:
        radial-gradient(circle at 10% 0%, rgba(95, 133, 255, 0.22), transparent 25%),
        radial-gradient(circle at 100% 18%, rgba(255, 157, 99, 0.16), transparent 18%),
        linear-gradient(180deg, #eef3ff 0%, #f7f9ff 58%, #fff8f3 100%);
    color: var(--theme-text);
}

body.user-page,
body.route-home,
body.route-tasks,
body.route-invitation,
body.route-recharge,
body.route-withdrawal,
body.route-transfer,
body.route-profile,
body.route-add_card,
body.route-about,
body.route-language,
body.route-change-password,
body.route-bankcard,
body.route-get-task,
body.route-support-request {
    background:
        radial-gradient(circle at 0% 0%, rgba(95, 133, 255, 0.22), transparent 20%),
        radial-gradient(circle at 100% 18%, rgba(255, 157, 99, 0.18), transparent 16%),
        linear-gradient(180deg, #e8efff 0, #f4f7ff 220px, #fffaf5 220px, #fffaf5 100%);
}

body.auth-page {
    background:
        linear-gradient(180deg, #f5f8ff 0 44px, #dde7ff 44px 325px, #fffaf5 325px 100%);
}

body.auth-page,
body.user-page {
    overflow-x: hidden;
    overflow-y: auto;
}

body.auth-page .app-container,
body.user-page .app-container {
    max-width: 410px;
    height: auto;
    min-height: 100dvh;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.98) 65%, rgba(255, 248, 243, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 32px 90px rgba(23, 36, 90, 0.16);
    border-radius: 36px;
    padding-top: 94px;
    padding-bottom: 28px;
    overflow: visible;
}

body.auth-page .app-container {
    padding-bottom: 20px;
}

.app-header {
    position: fixed;
    top: max(0px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(410px, 100%);
    z-index: 1200;
    padding: 12px 16px 0;
    background: linear-gradient(180deg, rgba(245, 248, 255, 0.96), rgba(245, 248, 255, 0.12));
    backdrop-filter: blur(18px);
    pointer-events: none;
}

.header-content {
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(27, 37, 89, 0.08);
    box-shadow: 0 18px 32px rgba(23, 36, 90, 0.08);
    pointer-events: auto;
}

.header-brand {
    gap: 10px;
    min-width: 0;
}

.header-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 18px;
    background: linear-gradient(180deg, #253887, #16224f);
    color: #fff;
    box-shadow: 0 16px 28px rgba(23, 36, 90, 0.2);
}

.header-brand-kicker {
    margin-bottom: 4px;
    color: #7a86a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.app-title {
    font-size: 20px;
    color: var(--theme-dark);
    line-height: 1;
}

.language-selector {
    min-height: 42px;
    background: #f3f6ff;
    border-color: rgba(27, 37, 89, 0.08);
    color: var(--theme-dark);
}

.language-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(27, 37, 89, 0.08);
    box-shadow: 0 22px 36px rgba(23, 36, 90, 0.12);
}

.language-option:hover {
    background: rgba(32, 49, 117, 0.08);
    color: var(--theme-dark);
}

.language-option.active {
    background: linear-gradient(180deg, #24367d, #172456);
}

.notification-icon {
    background: linear-gradient(180deg, #24367d, #172456);
    box-shadow: 0 14px 24px rgba(23, 36, 90, 0.16);
}

.notification-icon .badge {
    background: #fff;
    color: var(--theme-dark);
}

.dropdown-menu {
    border-radius: 22px;
    box-shadow: 0 24px 42px rgba(23, 36, 90, 0.12);
}

.main-content {
    position: relative;
    z-index: 1;
    padding: 18px 18px 38px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
    min-height: auto;
    height: auto;
    overflow: visible;
    overflow-x: hidden;
    touch-action: pan-y;
}

.content-card,
.task-card,
.settings-panel,
.change-password-form,
.recharge-history,
.bank-list-card,
.transaction-card,
.marquee-card,
.partner-card,
.info-section,
.overview-card,
.screenshot-area,
.upload-area,
.withdrawal-info,
.bank-section,
body.route-recharge .recharge-form,
body.route-recharge .recharge-history,
body.route-recharge .bank-section,
body.route-recharge .screenshot-area,
.task-media-card,
.support-card,
.support-chat-card,
.meta-box,
.status-panel {
    background: linear-gradient(180deg, #ffffff, #f8faff);
    border: 1px solid rgba(27, 37, 89, 0.08);
    box-shadow: var(--theme-shadow);
    border-radius: 28px;
}

.content-card::before,
.hero-panel::before,
.dashboard-card::before,
.task-card::before,
.settings-panel::before,
.change-password-form::before,
.recharge-history::before,
.bank-list-card::before,
.transaction-card::before {
    background: linear-gradient(180deg, rgba(32, 49, 117, 0.08), rgba(255, 255, 255, 0));
}

.btn,
.btn-primary,
.btn-outline,
.btn-recharge,
#withdrawButton,
.btn-change-password,
.btn-primary-support {
    min-height: 56px;
    border-radius: 18px;
    font-weight: 700;
}

.btn-primary,
.btn-recharge,
#withdrawButton,
.btn-change-password,
.hero-cta,
.quick-start-cta,
.invitation-start-btn,
.btn-primary-support {
    background: linear-gradient(180deg, #24367d, #172456);
    color: #fff;
    box-shadow: 0 18px 32px rgba(23, 36, 90, 0.18);
}

.btn-outline,
.btn-secondary-support {
    background: #fff;
    color: var(--theme-dark);
    border: 1px solid rgba(27, 37, 89, 0.1);
    box-shadow: 0 14px 26px rgba(23, 36, 90, 0.06);
}

.hero-cta:hover,
.btn-primary:hover,
.btn-recharge:hover,
#withdrawButton:hover,
.btn-change-password:hover,
.btn-primary-support:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.form-group .input-shell {
    min-height: 60px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(27, 37, 89, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.input-icon {
    color: var(--theme-dark-soft);
}

.form-group input,
.form-group select,
.amount-input,
.transaction-form input[type='number'],
.transaction-form input[type='text'],
.card-form input,
.change-password-form input,
.recharge-form input[type='number'] {
    color: var(--theme-text);
}

.form-group input::placeholder,
.recharge-form input::placeholder,
.transaction-form input::placeholder,
.card-form input::placeholder {
    color: #9aa4c1;
}

.auth-container {
    padding: 8px 0 24px;
}

.auth-hero {
    display: grid;
    gap: 22px;
    min-height: auto;
    padding: 22px;
    border-radius: 32px;
    overflow: hidden;
}

.login-hero {
    margin-top: 10px;
    padding: 14px 18px;
    gap: 12px;
    border-radius: 28px;
}

.login-hero .auth-hero-content {
    max-width: 204px;
    padding-top: 4px;
}

.login-hero h2 {
    margin-top: 12px;
    font-size: 26px;
}

.login-hero .auth-hero-visual {
    min-height: 132px;
    padding-left: 22px;
}

.login-hero .auth-preview-card {
    width: min(164px, 100%);
    padding: 8px;
}

.login-hero .auth-preview-media {
    aspect-ratio: 1 / 0.82;
}

.login-hero .auth-preview-pill {
    bottom: 4px;
    min-width: 112px;
    padding: 10px 12px;
}

.login-hero .auth-preview-body {
    padding: 10px 6px 4px;
}

.login-hero .auth-preview-body strong {
    font-size: 14px;
}

.login-hero .auth-preview-body span,
.login-hero p {
    font-size: 12px;
    line-height: 1.55;
}

.login-hero .auth-pill-row {
    margin-top: 14px;
}

.auth-hero::before {
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.24), transparent 16%),
        linear-gradient(140deg, #203175, #314690 58%, #ff9d63);
}

body.route-register .auth-hero.register-hero::before {
    background:
        linear-gradient(115deg, rgba(32, 49, 117, 0.82), rgba(32, 49, 117, 0.28)),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 16%),
        url('/assets/images/bg1.jpg') center/cover;
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 12px;
    max-width: 228px;
}

.auth-logo-badge {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-hero h2 {
    font-size: 34px;
    line-height: 1;
    margin-top: 16px;
}

.auth-hero p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.7;
}

.auth-pill-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.auth-mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-mini-pill-light {
    background: rgba(255, 255, 255, 0.1);
}

.auth-mini-pill:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.24);
}

.auth-mini-pill.is-active {
    background: #fff;
    color: var(--theme-dark);
    box-shadow: 0 12px 24px rgba(14, 25, 62, 0.14);
}

.auth-hero-visual {
    position: relative;
    z-index: 1;
    padding-left: 48px;
    min-height: 190px;
}

.auth-preview-card {
    width: min(220px, 100%);
    margin-left: auto;
    padding: 10px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
    box-shadow: 0 28px 44px rgba(14, 25, 62, 0.24);
}

.auth-preview-media {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, #21326f, #172456);
    aspect-ratio: 1 / 1.1;
}

.auth-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-preview-body {
    display: grid;
    gap: 4px;
    padding: 14px 8px 6px;
    color: var(--theme-dark);
}

.auth-preview-body strong {
    font-size: 16px;
}

.auth-preview-body span {
    color: var(--theme-muted);
    font-size: 12px;
    line-height: 1.6;
}

.auth-preview-pill {
    position: absolute;
    left: 0;
    bottom: 12px;
    min-width: 132px;
    padding: 12px 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
    box-shadow: 0 16px 30px rgba(14, 25, 62, 0.18);
}

.auth-preview-pill-warm {
    background: linear-gradient(180deg, #fff4eb, #ffffff);
}

.auth-preview-pill-label {
    display: block;
    margin-bottom: 4px;
    color: #8894b7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-preview-pill strong {
    color: var(--theme-dark);
    font-size: 14px;
}

.auth-card,
.auth-card.compact-center,
.auth-card.auth-card-floating {
    margin-top: -24px;
    border-radius: 34px 34px 0 0;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    box-shadow: 0 -12px 30px rgba(23, 36, 90, 0.1);
}

.auth-card.compact-center {
    min-height: auto;
}

.auth-heading {
    text-align: left;
    margin-bottom: 22px;
}

.auth-heading h3 {
    font-size: 28px;
    color: var(--theme-dark);
}

.auth-heading p {
    color: var(--theme-muted);
}

.auth-divider {
    color: #95a0bc;
}

.link-secondary {
    color: var(--theme-dark);
}

.home-hero {
    background: transparent;
    margin: 0 0 18px;
    padding: 0;
}

.home-hero-shell {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 32px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    color: var(--theme-text);
    overflow: hidden;
    box-shadow: 0 28px 54px rgba(23, 36, 90, 0.12);
}

.home-hero-shell::before,
.home-hero-shell::after {
    background: rgba(32, 49, 117, 0.08);
}

.home-hero-shell::before {
    width: 170px;
    height: 170px;
    top: -56px;
    right: -44px;
}

.home-hero-shell::after {
    width: 128px;
    height: 128px;
    left: -26px;
    bottom: -44px;
    background: rgba(255, 138, 76, 0.12);
}

.home-headline {
    margin-top: 0;
    font-size: 34px;
    line-height: 1.04;
    color: var(--theme-dark);
}

.home-headline span {
    color: var(--theme-accent-500);
}

.home-description {
    margin-top: 10px;
    max-width: none;
    color: var(--theme-muted);
    font-size: 13px;
}

.home-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.home-category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f2f5ff;
    color: var(--theme-dark-soft);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.home-category-chip.active {
    background: linear-gradient(180deg, #24367d, #172456);
    color: #fff;
    box-shadow: 0 12px 22px rgba(23, 36, 90, 0.16);
}

.home-stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.home-stat-card {
    min-height: 94px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(27, 37, 89, 0.08);
}

.home-stat-card.primary {
    background: linear-gradient(180deg, #24367d, #172456);
    color: #fff;
}

.home-stat-card span {
    color: #7f8aaf;
}

.home-stat-card.primary span,
.home-stat-card.primary strong {
    color: #fff;
}

.home-link-row {
    margin-top: 20px;
}

.hero-cta {
    flex: 1;
    margin-top: 0;
}

.home-link-chip {
    background: #eef2ff;
    border-color: rgba(27, 37, 89, 0.08);
    color: var(--theme-dark);
}

.home-hero-media {
    min-height: auto;
}

.home-hero-frame {
    width: min(246px, 100%);
    margin-left: auto;
    padding: 10px;
    border-radius: 30px;
    background: linear-gradient(180deg, #24367d, #172456);
    box-shadow: 0 26px 42px rgba(23, 36, 90, 0.24);
}

.home-hero-frame img {
    height: 290px;
    border-radius: 22px;
}

.home-hero-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--theme-dark);
}

.home-hero-badge span {
    color: var(--theme-accent-500);
}

.section-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #8a96b6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-snapshot-card,
.overview-card,
.partner-card,
.info-section {
    padding: 20px;
}

.transaction-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.transaction-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f7f9ff;
    border: 1px solid rgba(27, 37, 89, 0.06);
}

.transaction-item span:last-child {
    color: var(--theme-accent-500);
    font-weight: 700;
}

.home-overview-card {
    background: linear-gradient(180deg, #24367d, #172456);
    color: #fff;
}

.home-overview-card h3 {
    color: #fff;
}

.home-overview-card p {
    color: rgba(255, 255, 255, 0.82);
}

.home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.feature-item {
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    box-shadow: none;
}

.feature-icon,
.page-header-icon,
.menu-icon {
    background: linear-gradient(135deg, rgba(32, 49, 117, 0.1), rgba(255, 138, 76, 0.18));
    color: var(--theme-dark);
}

.feature-item p,
.info-section p,
.overview-card p {
    color: var(--theme-muted);
}

.home-brand-board {
    background: linear-gradient(180deg, #ffffff, #f8faff);
    color: var(--theme-text);
}

.home-brand-board h3 {
    color: var(--theme-dark) !important;
    text-align: left !important;
}

.partner-grid {
    gap: 12px;
}

.partner-tile {
    min-height: 110px;
    padding: 14px 10px;
    background: #f6f8ff;
    gap: 8px;
    flex-direction: column;
}

.partner-tile img {
    width: 54px;
    height: 54px;
    border: 0;
    box-shadow: none;
}

.partner-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-muted);
}

.dashboard-topbar,
.balance-hero,
.task-progress-card,
.quick-start-card {
    background: linear-gradient(180deg, #ffffff, #f8faff);
    color: var(--theme-text);
    border: 1px solid rgba(27, 37, 89, 0.08);
    box-shadow: var(--theme-shadow);
}

.profile-summary-card,
.action-tile.dark-banner {
    background: linear-gradient(140deg, #247d46, #1c5617 65%, #ff8a4c 130%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 44px rgba(23, 36, 90, 0.16);
}

.dashboard-topbar::before,
.profile-summary-card::before {
    background: rgba(73, 122, 32, 0.07);
}

.dashboard-ticker {
    background: linear-gradient(180deg, #f4f7ff, #ffffff);
    border-color: rgba(44, 112, 30, 0.08);
    box-shadow: none;
}

.ticker-icon {
    border-radius: 50%;
    background: rgba(255, 138, 76, 0.14);
    color: var(--theme-accent-500);
}

.ticker-track,
.ticker-track span,
.ticker-track span strong {
    color: var(--theme-dark);
}

.ticker-track span::after {
    background: rgba(255, 138, 76, 0.5);
}

.welcome-line {
    color: var(--theme-muted);
}

.balance-hero-grid,
.quick-actions,
.summary-board-stats,
.invitation-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.balance-hero-grid > :only-child {
    grid-column: 1 / -1;
}

.metric-card.dark,
.profile-income-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    min-height: 96px;
    padding: 16px 18px;
    background: linear-gradient(180deg, #247d5f, #17564e);
    color: #fff;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 20px 32px rgba(23, 36, 90, 0.18);
}

.metric-card.dark .metric-label,
.summary-stat-label,
.profile-income-card .metric-label {
    display: block;
    width: 100%;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.metric-card.dark .metric-value,
.profile-income-card strong {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
    word-break: break-word;
}

.profile-income-card strong {
    font-weight: 800;
}

.quick-start-card {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.quick-start-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--theme-dark);
}

.quick-start-title {
    color: var(--theme-dark);
    font-size: 28px;
}

.quick-start-note {
    color: var(--theme-muted);
    line-height: 1.6;
}

.summary-board {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
}

.summary-board-head strong {
    color: var(--theme-dark);
    font-size: 24px;
}

.summary-board-badge,
.status-pill,
.badge {
    background: #eef2ff;
    color: var(--theme-dark);
}

.summary-stat-card {
    background: #f6f8ff;
    border: 1px solid rgba(27, 37, 89, 0.08);
    box-shadow: none;
}

.summary-board-value {
    color: var(--theme-dark);
}

.summary-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(27, 37, 89, 0.06);
}

.summary-detail-row:last-child {
    border-bottom: 0;
}

.summary-accent-warm,
.task-focus-price,
.task-modal-price,
.task-earn-value,
.snapshot-value {
    color: var(--theme-accent-500) !important;
}

.summary-accent-cool {
    color: var(--theme-dark-soft) !important;
}

.task-tabs {
    padding: 6px;
    border-radius: 22px;
    background: #f5f7ff;
    border: 1px solid rgba(27, 37, 89, 0.08);
    box-shadow: none;
}

.tab-btn {
    border-radius: 16px;
    color: #7683ab;
    font-weight: 700;
}

.tab-btn.active {
    background: #fff;
    color: var(--theme-dark);
    box-shadow: 0 12px 22px rgba(23, 36, 90, 0.1);
}

.task-grid {
    display: none;
    gap: 14px;
}

.task-grid.active {
    display: grid;
}

body.route-tasks .task-grid.active,
body.route-get-task .paid-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-product-card,
.task-media-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    box-shadow: var(--theme-shadow);
}

.task-product-card img,
.task-media-card img,
.paid-task-image {
    width: 100%;
    height: 132px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: none;
}

.task-meta {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.task-meta h4 {
    color: var(--theme-dark);
    font-size: 15px;
    line-height: 1.45;
}

.task-description {
    color: var(--theme-muted);
    font-size: 12px;
    line-height: 1.6;
}

.task-price-row,
.detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    color: var(--theme-muted);
    font-size: 12px;
}

.task-price-row strong,
.detail-row strong {
    color: var(--theme-dark);
    font-size: 13px;
}

.paid-task-pill {
    align-self: flex-start;
}

.empty-card,
.task-empty-card {
    text-align: center;
    color: var(--theme-muted);
}

.task-focus-card {
    padding: 20px;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
}

.task-focus-image-shell,
.task-modal-image-shell {
    background: linear-gradient(180deg, #eef2ff, #fff4eb);
    border-radius: 28px;
    box-shadow: none;
}

.task-focus-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 24px;
}

.task-focus-status {
    width: 52px;
    height: 52px;
    margin: -18px auto 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--theme-accent-500);
    box-shadow: 0 18px 30px rgba(23, 36, 90, 0.12);
}

.task-focus-title {
    margin-top: 14px;
    color: var(--theme-dark);
    font-size: 28px;
    text-align: center;
}

.task-focus-name {
    margin-top: 6px;
    color: var(--theme-muted);
    text-align: center;
    line-height: 1.6;
}

.task-focus-price {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
}

.task-focus-details,
.task-modal-details {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 22px;
    background: #f5f7ff;
}

.task-section-title {
    margin: 20px 0 12px;
    color: var(--theme-dark);
    font-size: 20px;
}

.task-payment-modal {
    background-color: rgba(23, 36, 90, 0.3);
}

.task-payment-dialog {
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    box-shadow: 0 30px 50px rgba(23, 36, 90, 0.2);
}

.task-payment-head h3,
.task-modal-name {
    color: var(--theme-dark);
}

.task-payment-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.task-popup-toast,
#popup-toast {
    background: linear-gradient(180deg, #ffffff, #f8faff) !important;
    border: 1px solid rgba(27, 37, 89, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 28px 44px rgba(23, 36, 90, 0.18) !important;
}

.task-popup-close,
#popup-close {
    background: linear-gradient(180deg, #ff8a4c, #ff6f4a) !important;
    box-shadow: 0 8px 16px rgba(255, 138, 76, 0.24) !important;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    border: 1px solid rgba(27, 37, 89, 0.08);
    box-shadow: var(--theme-shadow);
}

.profile-avatar img {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    border: 4px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 34px rgba(23, 36, 90, 0.14);
}

.profile-info {
    min-width: 0;
}

.username-vip {
    color: var(--theme-dark);
    font-size: 24px;
}

.profile-subline {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f1f5ff;
    color: var(--theme-muted);
}

.profile-summary-card {
    padding: 20px;
    border-radius: 30px;
}

.profile-summary-title,
.profile-total-assets strong {
    color: #fff;
}

.profile-total-assets strong {
    font-size: 32px;
}

.action-tile {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    color: var(--theme-dark);
    box-shadow: var(--theme-shadow);
}

.action-tile.alt {
    background: linear-gradient(180deg, #fff4eb, #ffffff);
}

.action-tile.dark-banner {
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px;
    color: #fff;
}

.profile-quick-action {
    justify-content: flex-start;
    gap: 12px;
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(36, 54, 125, 0.12), rgba(255, 138, 76, 0.18));
    color: var(--theme-dark);
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.action-tile.alt .quick-action-icon {
    background: linear-gradient(135deg, rgba(255, 138, 76, 0.14), rgba(36, 54, 125, 0.12));
}

.quick-action-icon i {
    font-size: 17px;
}

.quick-action-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.banner-copy-title {
    font-size: 18px;
    font-weight: 800;
}

.banner-copy-subtitle {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.6;
}

.settings-panel {
    padding: 8px;
}

.settings-list {
    list-style: none;
}

.settings-list li + li {
    border-top: 1px solid rgba(27, 37, 89, 0.06);
}

.settings-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    text-decoration: none;
    color: var(--theme-dark);
}

.settings-list a .fa-chevron-right {
    margin-left: auto;
    color: #b5bfd7;
}

.section-stack {
    display: grid;
    gap: 16px;
}

.page-header-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.page-header-copy h2 {
    color: var(--theme-dark);
    font-size: 22px;
}

.page-header-copy p {
    color: var(--theme-muted);
    font-size: 13px;
    line-height: 1.6;
}

.invitation-banner {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    min-height: 190px;
    background: linear-gradient(180deg, #24367d, #172456);
}

.invitation-banner img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.invitation-banner-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px;
    background: linear-gradient(180deg, transparent, rgba(23, 36, 90, 0.82));
}

.invitation-banner-title {
    max-width: 180px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.invitation-hero-actions {
    display: grid;
    gap: 10px;
}

.invitation-help-text {
    color: var(--theme-muted);
    font-size: 12px;
    text-align: center;
}

.invitation-stat-card {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.invitation-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
}

.mini-stat-label {
    color: var(--theme-muted);
    font-size: 12px;
    line-height: 1.5;
}

.mini-stat-value {
    color: var(--theme-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.info-list {
    display: grid;
    gap: 10px;
}

.info-list-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f7f9ff;
    color: var(--theme-muted);
    line-height: 1.6;
}

.info-list-item strong {
    color: var(--theme-dark);
    margin-right: 8px;
}

.soft-card {
    padding: 16px 18px;
    border-radius: 22px;
    background: #f6f8ff;
    border: 1px solid rgba(27, 37, 89, 0.08);
    box-shadow: none;
}

.section-intro h2 {
    color: var(--theme-dark);
    font-size: 24px;
}

.section-intro p {
    color: var(--theme-muted);
}

.transaction-form,
.recharge-form {
    display: grid;
    gap: 14px;
}

.content-card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 18px;
    overflow: hidden;
}

.content-card thead tr {
    background: #f2f5ff;
}

.content-card th,
.content-card td {
    padding: 12px 10px;
    text-align: left;
    font-size: 12px;
}

.content-card tbody tr:nth-child(even) {
    background: rgba(32, 49, 117, 0.03);
}

.recharge-panel,
.bank-section,
.recharge-history-card,
.screenshot-area,
.recharge-qr-panel {
    background: linear-gradient(180deg, #ffffff, #f8faff) !important;
    border-color: rgba(27, 37, 89, 0.08) !important;
    box-shadow: var(--theme-shadow) !important;
}

.recharge-mode-toggle,
.recharge-record {
    background: linear-gradient(180deg, #24367d, #172456) !important;
    box-shadow: 0 18px 34px rgba(23, 36, 90, 0.18) !important;
}

.amount-btn {
    background: #f3f6ff !important;
    border-color: rgba(27, 37, 89, 0.08) !important;
    color: var(--theme-dark) !important;
    box-shadow: none !important;
}

.amount-btn:hover,
.amount-btn.selected {
    background: linear-gradient(180deg, #24367d, #172456) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 16px 28px rgba(23, 36, 90, 0.16) !important;
}

.recharge-form input[type='number'],
#usdtAmountInput {
    background: #fff !important;
    border-color: rgba(27, 37, 89, 0.1) !important;
    color: var(--theme-text) !important;
}

.deposit-limits-box,
.pending-timer-box,
.recharge-info-row {
    background: #f6f8ff !important;
    border-color: rgba(27, 37, 89, 0.08) !important;
    color: var(--theme-dark) !important;
    box-shadow: none !important;
}

.usdt-upload-wrap {
    border-color: rgba(255, 138, 76, 0.24) !important;
    background: linear-gradient(180deg, #fff5ee, #fffaf7) !important;
}

.usdt-upload-wrap:hover {
    border-color: rgba(255, 138, 76, 0.4) !important;
    background: linear-gradient(180deg, #fff8f2, #ffffff) !important;
    box-shadow: 0 0 0 3px rgba(255, 138, 76, 0.12) !important;
}

.usdt-upload-trigger {
    background: linear-gradient(180deg, #ff9d63, #ff814a) !important;
    box-shadow: 0 12px 20px rgba(255, 138, 76, 0.18) !important;
}

.recharge-history-table thead tr {
    background: linear-gradient(180deg, #24367d, #172456) !important;
}

.change-password-container,
.recharge-container {
    padding: 0 0 20px;
}

.change-password-form {
    padding: 24px !important;
}

.form-title {
    font-size: 28px !important;
    color: var(--theme-dark) !important;
}

.password-requirements {
    background: #f3f6ff !important;
    border-radius: 20px !important;
    color: var(--theme-muted) !important;
}

.password-requirements h4 {
    color: var(--theme-dark) !important;
}

.support-card,
.support-chat-card,
.meta-box,
.status-panel {
    background: linear-gradient(180deg, #ffffff, #f8faff);
    border: 1px solid rgba(27, 37, 89, 0.08);
    border-radius: 24px;
    box-shadow: var(--theme-shadow);
}

.btn-secondary-support {
    border-radius: 16px;
}

.chat-compose {
    background: #f6f8ff;
    border-radius: 18px;
}

.support-chat-bubble {
    border-radius: 18px !important;
}

.support-chat-row.user .support-chat-bubble {
    background: linear-gradient(180deg, #24367d, #172456) !important;
    color: #fff !important;
}

.support-chat-row.admin .support-chat-bubble {
    background: #f6f8ff !important;
    color: var(--theme-dark) !important;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: min(360px, calc(100% - 30px));
    padding: 10px 14px 12px;
    background: linear-gradient(180deg, #24367d, #172456);
    border: 0;
    border-radius: 30px;
    box-shadow: 0 28px 42px rgba(23, 36, 90, 0.24);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    transform: translateX(-50%);
    z-index: 1200;
    pointer-events: auto;
}

.nav-item {
    min-height: 56px;
    display: grid;
    place-items: center;
    gap: 6px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
}

.nav-item span {
    font-size: 10px;
    font-weight: 700;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-item-center {
    background: transparent;
}

.nav-item-center i {
    background: linear-gradient(180deg, #ff9d63, #ff814a);
    color: #fff;
    box-shadow: 0 16px 24px rgba(255, 138, 76, 0.28);
}

.page-preloader {
    background: rgba(248, 250, 255, 0.94);
}

.loader-circle,
.loading {
    border-color: rgba(32, 49, 117, 0.12);
    border-top-color: var(--theme-dark);
}

@media (max-width: 374px) {
    body.auth-page .app-container,
    body.user-page .app-container {
        padding-bottom: 24px;
    }

    .auth-hero-visual {
        padding-left: 18px;
    }

    .auth-preview-pill {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 12px;
    }

    .home-link-row {
        flex-direction: column;
    }

    .hero-cta,
    .home-link-chip {
        width: 100%;
    }
}

@media (max-width: 359px) {
    .home-stat-grid,
    .home-feature-grid,
    .balance-hero-grid,
    .quick-actions,
    .summary-board-stats,
    .invitation-stats-grid,
    body.route-tasks .task-grid.active,
    body.route-get-task .paid-task-grid,
    .task-payment-actions {
        grid-template-columns: 1fr;
    }

    .partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-header {
        align-items: flex-start;
    }
}

/* Centre Mall palette: red storefront accents with a clear-sky, white backdrop. */
body,
body.user-page,
body.route-home,
body.route-tasks,
body.route-invitation,
body.route-recharge,
body.route-withdrawal,
body.route-transfer,
body.route-profile,
body.route-add_card,
body.route-about,
body.route-language,
body.route-change-password,
body.route-bankcard,
body.route-get-task,
body.route-support-request {
    background:
        radial-gradient(circle at 8% 0%, rgba(136, 204, 231, 0.42), transparent 24%),
        radial-gradient(circle at 100% 18%, rgba(207, 23, 35, 0.09), transparent 18%),
        linear-gradient(180deg, #dff3fb 0, #f5fbfd 220px, #fffdfb 220px, #fffdfb 100%);
}

body.auth-page {
    background: linear-gradient(180deg, #f5fbfd 0 44px, #d8f0fa 44px 325px, #fffdfb 325px 100%);
}

body.auth-page .app-container,
body.user-page .app-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 254, 0.98) 65%, rgba(255, 251, 249, 0.99));
    box-shadow: 0 32px 90px rgba(126, 9, 20, 0.13);
}

.app-header { background: linear-gradient(180deg, rgba(223, 243, 251, 0.96), rgba(223, 243, 251, 0.12)); }
.header-content { border-color: rgba(126, 9, 20, 0.1); box-shadow: 0 18px 32px rgba(126, 9, 20, 0.08); }
.header-brand-mark,
.notification-icon,
.language-option.active,
.home-category-chip.active,
.home-stat-card.primary,
.home-overview-card,
.btn-primary,
.btn-recharge,
#withdrawButton,
.btn-change-password,
.hero-cta,
.quick-start-cta,
.invitation-start-btn,
.btn-primary-support,
.support-chat-row.user .support-chat-bubble {
    background: linear-gradient(180deg, #c7e51c, #a2ad0d) !important;
    box-shadow: 0 18px 32px rgba(173, 13, 26, 0.2);
}

.profile-summary-card,
.action-tile.dark-banner {
    background: linear-gradient(140deg, #85d719, #57a70d 65%, #f0656d 130%);
    box-shadow: 0 26px 44px rgba(173, 13, 26, 0.18);
}

.auth-hero::before {
    background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28), transparent 16%), linear-gradient(140deg, #b70e1b, #dc1b28 58%, #f06870);
}

body.route-register .auth-hero.register-hero::before {
    background: linear-gradient(115deg, rgba(108, 167, 13, 0.84), rgba(207, 23, 35, 0.35)), radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 16%), url('/assets/images/bg1.jpg') center/cover;
}

.home-hero-shell::before,
.dashboard-topbar::before,
.profile-summary-card::before { background: rgba(207, 23, 35, 0.08); }
.home-hero-shell::after { background: rgba(136, 204, 231, 0.2); }
.feature-icon,
.page-header-icon,
.menu-icon { background: linear-gradient(135deg, rgba(207, 23, 35, 0.12), rgba(136, 204, 231, 0.24)); color: var(--theme-primary-700); }
.ticker-icon { background: rgba(207, 23, 35, 0.12); color: var(--theme-primary); }
.ticker-track span::after { background: rgba(167, 207, 23, 0.48); }
.nav-item-center i { background: linear-gradient(180deg, #a5f044, #ADCF17); box-shadow: 0 16px 24px rgba(207, 23, 35, 0.28); }
.bottom-nav { background: linear-gradient(180deg, #c4d719, #6a9d0b); box-shadow: 0 28px 42px rgba(157, 11, 23, 0.24); }
.home-hero-frame { background: linear-gradient(180deg, #c4d719, #6a9d0b); box-shadow: 0 26px 42px rgba(173, 13, 26, 0.24); }
.auth-preview-media { background: linear-gradient(180deg, #c4d719, #6a9d0b); }
.auth-preview-pill-warm { background: linear-gradient(180deg, #fff2f1, #fff); }
