@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
    --theme-primary-rgb: 255, 51, 102;
    --theme-primary: #ff335f;
    --theme-primary-dark: #e61f63;
    --theme-primary-soft: rgba(255, 51, 102, 0.12);
    --theme-cyan: #17d7f6;
    --theme-dark: #070707;
    --theme-dark-soft: #111318;
    --theme-surface: #ffffff;
    --theme-surface-soft: #f6f6f7;
    --theme-text: #121212;
    --theme-muted: #757575;
    --theme-border: rgba(18, 18, 18, 0.08);
    --theme-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    --theme-radius: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(23, 215, 246, 0.18), transparent 25%),
        linear-gradient(180deg, #fdfdfd 0%, #f1f1f3 100%);
    color: var(--theme-text);
    min-height: 100vh;
}

body.user-page {
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 51, 102, 0.12), transparent 22%),
        linear-gradient(180deg, #050505 0, #111827 220px, #f6f6f7 220px, #f6f6f7 100%);
    overflow: hidden;
}

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 {
    background:
        radial-gradient(circle at top left, rgba(255, 51, 102, 0.14), transparent 16%),
        linear-gradient(180deg, #040404 0, #0b162e 210px, #f7f7f8 210px, #f7f7f8 100%);
}

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

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    color: var(--theme-text);
}

body.auth-page .app-container,
body.user-page .app-container {
    max-width: 390px;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0 auto;
    position: relative;
    padding-top: 88px;
    padding-bottom: 108px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 70px rgba(7, 13, 27, 0.16);
    overflow: hidden;
    border-radius: 24px;
}

.app-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(390px, 100%);
    z-index: 1000;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(4, 8, 18, 0.72), rgba(4, 8, 18, 0.08));
    backdrop-filter: blur(16px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 8px 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(5, 12, 27, 0.15);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-menu-button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #111;
    font-size: 20px;
}

.header-brand-kicker {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2px;
}

.app-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.auth-page .app-title {
    color: #111;
}

body.user-page .app-title,
body.user-page .header-menu-button {
    color: #fff;
}

body.auth-page .app-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2));
}

body.auth-page .header-content {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(17, 17, 17, 0.06);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

body.auth-page .header-menu-button {
    background: rgba(17, 17, 17, 0.04);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-selector {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    min-height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.auth-page .language-selector {
    background: #fff;
    color: #111;
    border-color: rgba(17, 17, 17, 0.08);
}

.language-selector i {
    font-size: 13px;
    opacity: 0.9;
}

.language-dropdown {
    position: relative;
}

.language-trigger {
    min-width: 104px;
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    padding: 0 18px 0 0;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.language-trigger::before,
.language-trigger::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateY(-50%);
    opacity: 0.9;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 156px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
    display: none;
    z-index: 30;
}

.language-dropdown.is-open .language-menu {
    display: grid;
    gap: 4px;
}

.language-option {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.language-option:hover {
    background: rgba(23, 50, 77, 0.08);
    color: #17324d;
}

.language-option.active {
    background: linear-gradient(135deg, #17324d, #2f6ea5);
    color: #fff;
}

body.auth-page .language-menu {
    background: #ffffff;
    border-color: rgba(17, 17, 17, 0.08);
}

.notification-wrapper-fixed {
    position: relative;
}

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    position: relative;
}

.notification-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--theme-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 46px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--theme-shadow);
    border: 1px solid var(--theme-border);
    padding: 14px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.dropdown-item {
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.dropdown-item:last-child {
    border-bottom: 0;
}

.main-content {
    position: relative;
    z-index: 1;
    height: calc(100dvh - 196px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px 30px;
}

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

.auth-hero {
    position: relative;
    min-height: 250px;
    padding: 28px 24px 18px;
    color: #fff;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.3) 100%), url('/assets/images/bg1.jpg') center/cover;
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 52px;
}

.auth-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 18px;
}

.auth-logo-badge i {
    color: var(--theme-cyan);
}

.auth-hero h2 {
    color: #fff;
    font-size: 28px;
    line-height: 1.08;
    margin-bottom: 8px;
}

.auth-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
}

.auth-card {
    position: relative;
    z-index: 2;
    margin-top: -16px;
    background: #fff;
    border-radius: 28px 28px 0 0;
    padding: 28px 22px 30px;
    min-height: calc(100vh - 330px);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.16);
}

.auth-card.compact-center {
    margin-top: 54px;
    min-height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.auth-heading {
    text-align: center;
    margin-bottom: 24px;
}

.auth-heading h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    position: relative;
}

.form-group .input-shell {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-radius: 14px;
    background: var(--theme-surface-soft);
    border: 1px solid rgba(17, 17, 17, 0.06);
    overflow: hidden;
}

.input-icon {
    width: 44px;
    text-align: center;
    color: #111;
    font-size: 15px;
    opacity: 0.85;
}

.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'] {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    min-height: 54px;
    padding: 0 16px 0 0;
    font-size: 15px;
    font-family: inherit;
    color: var(--theme-text);
}

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

.input-action {
    width: 44px;
    border: 0;
    background: transparent;
    color: #b2b2b7;
    cursor: pointer;
}

.btn,
.btn-primary,
.btn-outline,
.btn-recharge,
#withdrawButton,
.btn-change-password {
    min-height: 54px;
    border-radius: 16px;
    border: 0;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-outline:hover,
.btn-recharge:hover,
#withdrawButton:hover,
.btn-change-password:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-recharge,
#withdrawButton,
.btn-change-password {
    width: 100%;
    background: #000;
    color: #fff;
}

.btn-outline {
    width: 100%;
    background: #fff;
    color: #111;
    border: 1.5px solid rgba(17, 17, 17, 0.18);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #9b9b9b;
    font-size: 13px;
    margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(17, 17, 17, 0.08);
}

.link-secondary {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    color: #111;
}

.error-message,
.alert-error,
.alert-success {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
}

.error-message,
.alert-error {
    background: rgba(255, 83, 102, 0.09);
    color: #c82343;
    border: 1px solid rgba(200, 35, 67, 0.12);
}

.alert-success {
    background: rgba(20, 184, 116, 0.1);
    color: #0f8f59;
    border: 1px solid rgba(20, 184, 116, 0.14);
}

.hero-panel,
.dashboard-card,
.content-card,
.task-card,
.settings-panel,
.change-password-form,
.recharge-history,
.bank-list-card,
.transaction-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.96));
    border-radius: 22px;
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(17, 17, 17, 0.05);
    overflow: hidden;
}

.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 {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 72px;
    background: linear-gradient(180deg, rgba(23, 215, 246, 0.07), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.content-card {
    padding: 18px;
}

.content-card > * {
    position: relative;
    z-index: 1;
}

.home-hero {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(23, 215, 246, 0.2), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 51, 102, 0.18), transparent 24%),
        linear-gradient(160deg, #07101f 0%, #0f2342 48%, #091522 100%);
    margin: 0 -16px 18px;
    padding: 18px 16px 26px;
    color: #fff;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%, rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.home-brand-title {
    position: relative;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.home-brand-subtitle {
    position: relative;
    text-align: left;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-top: 8px;
    line-height: 1.08;
    max-width: 240px;
}

.home-banner {
    border-radius: 28px;
    overflow: hidden;
    margin-top: 18px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.24);
}

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

.home-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.38));
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff5a7a, #ff7a45);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    margin-top: 16px;
    box-shadow: 0 16px 30px rgba(255, 90, 122, 0.3);
}

.btn-arrow {
    margin-left: 6px;
    font-size: 18px;
    line-height: 1;
}

.marquee-card,
.partner-card,
.info-section,
.overview-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(17, 17, 17, 0.04);
}

body.route-home .marquee-card {
    margin-top: 8px;
}

.overview-card {
    background:
        radial-gradient(circle at top right, rgba(23, 215, 246, 0.12), transparent 26%),
        linear-gradient(180deg, #ffffff, #fbfbfd);
}

.info-section h3,
.partner-card h3,
.overview-card h3,
.section-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-item {
    text-align: left;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #fbfbfd);
    border: 1px solid rgba(17, 17, 17, 0.04);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    margin: 0 0 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(23, 215, 246, 0.2), rgba(255, 51, 102, 0.18));
    color: var(--theme-primary);
    font-size: 22px;
}

.feature-item h3 {
    margin-bottom: 8px;
}

.feature-item p,
.info-section p,
.overview-card p {
    color: #50545d;
    line-height: 1.6;
    font-size: 14px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.partner-card.partner-dark {
    background:
        radial-gradient(circle at top left, rgba(23, 215, 246, 0.14), transparent 24%),
        linear-gradient(160deg, #08111f, #0f223b);
    color: #fff;
}

.partner-card.partner-dark h3 {
    color: #fff;
    text-align: center;
}

.partner-tile {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(17, 17, 17, 0.06);
    min-width: 0;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-tile::before {
    display: none;
}

.partner-tile img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: #fff;
    padding: 0;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.dashboard-topbar,
.balance-hero,
.task-progress-card,
.profile-summary-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(19, 38, 7, 0.98), rgba(43, 69, 9, 0.96));
    color: #fff;
    border: 1px solid rgba(23, 215, 246, 0.18);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.dashboard-topbar::before,
.profile-summary-card::before {
    content: '';
    position: absolute;
    inset: -60px auto auto -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(68, 246, 23, 0.12);
    filter: blur(8px);
}

.dashboard-ticker {
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(23, 215, 246, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    margin-bottom: 16px;
    background: rgba(5, 17, 37, 0.6);
    overflow: hidden;
}

.ticker-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--theme-cyan);
    flex: 0 0 auto;
}

.ticker-marquee {
    position: relative;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    min-width: max-content;
    color: rgba(255, 255, 255, 0.88);
    animation: tickerLeftToRight 26s linear infinite;
}

.ticker-track span {
    position: relative;
    padding-right: 28px;
    font-size: 13px;
    font-weight: 600;
}

.ticker-track span::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-cyan);
    transform: translateY(-50%);
}

@keyframes tickerLeftToRight {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.welcome-line {
    color: #ffd972;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

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

.page-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 51, 102, 0.08);
    color: var(--theme-primary);
    flex: 0 0 auto;
}

.page-header-copy h2 {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 4px;
}

.page-header-copy p {
    color: #8b8f98;
    font-size: 13px;
    line-height: 1.5;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.mini-stat {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(17, 17, 17, 0.05);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mini-stat-label {
    display: block;
    font-size: 12px;
    color: #8b8f98;
    margin-bottom: 8px;
}

.mini-stat-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

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

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

.info-list-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8f8fa;
    border: 1px solid rgba(17, 17, 17, 0.05);
    line-height: 1.6;
    font-size: 14px;
    color: #50545d;
}

.media-hero-card {
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.media-hero-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

.partner-wall .partner-tile {
    padding: 14px 10px;
}

.form-card {
    padding: 18px;
}

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

.data-table-card {
    overflow: hidden;
}

.data-table-card table {
    width: 100%;
}

.data-table-card thead tr {
    background: #f4f5f7 !important;
}

.data-table-card th,
.data-table-card td {
    padding: 12px 10px;
    vertical-align: top;
}

body.route-invitation .main-content {
    padding-top: 18px;
}

.invitation-hero-card {
    background:
        radial-gradient(circle at top right, rgba(23, 215, 246, 0.12), transparent 26%),
        linear-gradient(180deg, #ffffff, #fbfcff);
}

.invitation-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

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

.invitation-banner-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px 18px 18px;
    background: linear-gradient(180deg, rgba(4, 10, 20, 0.02), rgba(4, 10, 20, 0.82));
    color: #fff;
}

.invitation-banner-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 6px;
}

.invitation-banner-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    max-width: 220px;
}

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

.invitation-start-btn {
    background: linear-gradient(135deg, #0f172a, #173a69);
}

.invitation-help-text {
    text-align: center;
    color: #7a8495;
    font-size: 13px;
    line-height: 1.5;
}

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

.invitation-stat-card {
    position: relative;
    padding: 18px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 51, 102, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff, #fcfcfd);
    border: 1px solid rgba(17, 17, 17, 0.05);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.invitation-stat-card.balance-card-last {
    grid-column: 1 / -1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.invitation-stat-icon {
    margin-bottom: 12px;
}

.invitation-stat-card .mini-stat-label {
    margin-bottom: 10px;
    font-size: 12px;
}

.invitation-stat-card .mini-stat-value {
    font-size: 24px;
}

.invitation-rules-card {
    background:
        radial-gradient(circle at top left, rgba(255, 51, 102, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff, #fbfbfd);
}

.invitation-rules-head {
    margin-bottom: 12px;
}

body.route-invitation .info-list {
    gap: 10px;
}

body.route-invitation .info-list-item {
    position: relative;
    padding: 14px 16px 14px 44px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fafc, #f5f7fb);
    color: #4b5563;
}

body.route-invitation .info-list-item strong {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--theme-primary);
}

.task-popup-toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    min-width: 320px;
    max-width: 90vw;
    padding: 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.task-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
}

.task-popup-content {
    padding: 28px 24px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    font-weight: 600;
}

.task-focus-card {
    padding: 20px;
    margin-bottom: 18px;
    text-align: center;
}

.task-focus-image-shell {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 24px;
    overflow: hidden;
    background: #f5f5f6;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.task-focus-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-focus-status {
    text-align: center;
    font-size: 28px;
    color: #7ed957;
    margin-bottom: 10px;
}

.task-focus-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.task-focus-name {
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.task-focus-price {
    text-align: center;
    color: #ff5c5c;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 18px;
}

.task-focus-details,
.task-modal-details {
    padding: 14px;
    border-radius: 18px;
    background: #fafafa;
    margin-bottom: 16px;
    border: 1px solid rgba(17, 17, 17, 0.05);
}

.task-earn-value {
    color: var(--theme-primary);
}

.paid-task-card {
    opacity: 0.84;
}

.paid-task-image {
    filter: grayscale(1);
}

.paid-task-pill {
    margin-bottom: 8px;
}

.paid-task-time {
    font-size: 12px;
    color: #7b7f87;
    margin-top: 8px;
}

.task-payment-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1000;
}

.task-payment-dialog {
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 24px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.task-payment-head {
    text-align: center;
    margin-bottom: 18px;
}

.task-payment-head h3 {
    margin: 0;
}

.task-payment-info {
    margin-bottom: 20px;
}

.task-payment-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.task-payment-btn {
    flex: 1;
}

.task-modal-product {
    text-align: center;
}

.task-modal-image-shell {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    border-radius: 20px;
    overflow: hidden;
}

.task-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-modal-name {
    margin: 0 0 8px;
}

.task-modal-price {
    color: #ff5c5c;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

body.route-recharge .recharge-container,
body.route-withdrawal .transaction-form,
body.route-transfer .transaction-form,
body.route-add_card .card-form,
body.route-about .main-content,
body.route-language .main-content {
    padding-top: 4px;
}

body.route-recharge .recharge-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.route-recharge .recharge-form,
body.route-recharge .recharge-history,
body.route-recharge .bank-section,
body.route-recharge .screenshot-area {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

body.route-recharge .recharge-record {
    float: none !important;
    margin: 0 0 14px auto !important;
}

body.route-recharge .recharge-form {
    padding: 18px;
}

body.route-recharge .amount-btn {
    border-color: rgba(17, 17, 17, 0.12);
    color: #111;
}

body.route-recharge .amount-btn:hover,
body.route-recharge .amount-btn.selected {
    background: #111;
    color: #fff;
}

body.route-recharge #amountInput,
body.route-recharge #usdtAmountInput {
    min-height: 52px;
    margin: 0;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 14px;
    background: #fff;
    padding: 0 14px;
}

body.route-recharge .btn-recharge {
    background: #111;
}

body.route-recharge .btn-recharge:hover {
    background: #000;
}

.balance-hero-grid,
.balance-grid,
.stats-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.balance-card,
.metric-card,
.stats-chip {
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.05);
}

.balance-card.balance-card-last {
    grid-column: 1 / -1;
}

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

.metric-card.dark {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: #fff;
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.1);
}

.metric-card.dark .metric-label {
    font-size: 11px;
    margin-bottom: 4px;
}

.metric-card.dark .metric-value {
    font-size: 20px;
}

.metric-label,
.balance-label,
.card-title {
    display: block;
    color: #8c8f98;
    font-size: 12px;
    margin-bottom: 6px;
}

.metric-card.dark .metric-label {
    color: rgba(255, 255, 255, 0.68);
}

.metric-value,
.balance-amount,
.card-amount,
.balance-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.metric-vip-value {
    display: inline-flex;
    align-items: center;
}

.metric-card.dark .vip-chip {
    box-shadow: none;
}

.quick-actions,
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.action-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-tile,
.quick-link {
    min-height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: #111;
    background: linear-gradient(135deg, #fff0da, #fff7ef);
    border: 1px solid rgba(247, 178, 43, 0.18);
    box-shadow: 0 14px 26px rgba(247, 178, 43, 0.12);
}

.action-tile i,
.quick-link i {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
    font-size: 18px;
    line-height: 1;
}

.action-tile.alt {
    background: linear-gradient(135deg, #ffe7ee, #fff5f8);
    border-color: rgba(255, 51, 102, 0.16);
}

.action-tile.dark-banner {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding: 18px;
    min-height: 78px;
    background: linear-gradient(135deg, #08111f, #17365d);
    color: #fff;
    box-shadow: 0 20px 36px rgba(8, 17, 31, 0.2);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 4px 18px;
    color: #111827;
}

.profile-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    object-fit: cover;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.profile-info h2,
.username-vip {
    font-size: 24px;
    color: #111827;
    margin-bottom: 6px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-name-row .username-vip {
    margin-bottom: 0;
}

.profile-subline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    color: #374151;
    font-size: 12px;
}

.profile-subline strong {
    color: #111827;
    font-weight: 800;
}

.profile-copy-btn {
    border: 0;
    width: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-copy-btn:hover {
    background: rgba(17, 24, 39, 0.14);
}

.profile-copy-btn i {
    font-size: 12px;
    line-height: 1;
}

.vip-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffba08, #ff8b08);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.vip-chip i {
    font-size: 11px;
    line-height: 1;
}

.vip-tier-0 {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.vip-tier-1 {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.vip-tier-2 {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.vip-tier-3 {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.vip-tier-4 {
    background: linear-gradient(135deg, #10b981, #059669);
}

.vip-tier-5 {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
}

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

.menu-item,
.settings-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 16px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    font-size: 14px;
}

.settings-list a > span:not(.menu-icon) {
    flex: 1;
    min-width: 0;
}

.settings-list a > i:last-child {
    margin-left: auto;
    color: #a0a4ad;
    flex: 0 0 14px;
    text-align: center;
    font-size: 12px;
    line-height: 1;
}

.menu-item:last-child,
.settings-list li:last-child a {
    border-bottom: 0;
}

.menu-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 51, 102, 0.07);
    color: var(--theme-primary);
}

.menu-icon i {
    display: block;
    line-height: 1;
    font-size: 16px;
}

.task-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 7px;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.07);
}

.tab-btn {
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #969aa3;
    font-family: inherit;
    font-weight: 700;
}

.tab-btn.active {
    background: linear-gradient(135deg, #101926, #1e3d68);
    color: #fff;
    box-shadow: 0 12px 24px rgba(16, 25, 38, 0.18);
}

.task-list {
    display: none;
}

.task-list.active {
    display: block;
}

.task-media-card {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 22px;
    background: #fff;
    margin-bottom: 14px;
    border: 1px solid rgba(17, 17, 17, 0.05);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
}

.task-media-card img,
.task-thumb {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 16px;
    background: #f1f1f3;
}

.task-meta {
    flex: 1;
    min-width: 0;
}

.task-meta h4,
.task-meta strong {
    font-size: 14px;
    line-height: 1.45;
}

.task-description {
    font-size: 12px;
    color: #72757e;
    margin: 4px 0 8px;
}

.task-price-row,
.detail-row,
.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 13px;
}

.status-pill,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 51, 102, 0.1);
    color: var(--theme-primary);
    font-size: 12px;
    font-weight: 800;
}

.task-section-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 14px;
}

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

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 51, 102, 0.08);
    color: var(--theme-primary);
    font-size: 12px;
    font-weight: 700;
}

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

.product-card {
    background: linear-gradient(180deg, #fff, #fcfcfd);
    border: 1px solid rgba(17, 17, 17, 0.05);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.product-card .task-thumb {
    width: 100%;
    height: 112px;
    margin-bottom: 12px;
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 38px;
}

.product-price {
    margin-top: 10px;
    color: #ff7a00;
    font-weight: 800;
    font-size: 18px;
}

.transaction-feed {
    list-style: none;
}

.transaction-item {
    padding: 13px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.transaction-item:last-child {
    border-bottom: 0;
}

.transaction-item strong {
    font-size: 14px;
}

.transaction-item span:last-child {
    color: #4c5563;
}

.quick-start-card {
    padding: 18px;
    margin-bottom: 16px;
    background:
        radial-gradient(circle at top right, rgba(23, 215, 246, 0.14), transparent 28%),
        linear-gradient(135deg, #0c1830, #163960);
    color: #fff;
    border-color: rgba(23, 215, 246, 0.16);
    box-shadow: 0 20px 36px rgba(12, 24, 48, 0.2);
}

.quick-start-copy {
    margin-bottom: 14px;
}

.quick-start-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.quick-start-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.quick-start-note {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.55;
}

.quick-start-cta {
    margin-top: 0;
    background: linear-gradient(90deg, #2fa8ff, #1ad6df);
    box-shadow: 0 16px 30px rgba(26, 214, 223, 0.22);
}

.summary-board {
    padding: 18px;
    overflow: hidden;
    margin-bottom: 16px;
    background:
        radial-gradient(circle at top right, rgba(23, 215, 246, 0.1), transparent 28%),
        linear-gradient(180deg, #ffffff, #fbfcff);
}

.summary-board-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.summary-board-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7b8798;
    margin-bottom: 6px;
}

.summary-board-head strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #101926;
}

.summary-board-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(14, 165, 255, 0.1);
    color: #0f7ac7;
    font-size: 12px;
    font-weight: 800;
}

.summary-board-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.summary-stat-card {
    padding: 16px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b2344, #173965);
    color: #fff;
    box-shadow: 0 16px 28px rgba(11, 35, 68, 0.14);
}

.summary-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 8px;
}

.summary-board-value {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.summary-board-body {
    padding: 4px 0 0;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.summary-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

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

.summary-detail-row span {
    color: #697386;
}

.summary-detail-row strong {
    color: #111827;
    font-weight: 800;
}

.summary-accent-warm {
    color: #ff7a00 !important;
}

.summary-accent-cool {
    color: #0ea5ff !important;
}

.empty-card {
    padding: 18px;
    text-align: center;
    color: #6b7280;
}

.profile-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-summary-title {
    font-size: 16px;
    font-weight: 800;
}

.profile-total-assets {
    margin-bottom: 14px;
}

.profile-total-assets strong {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.profile-income-card .metric-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
}

.profile-income-card strong {
    font-size: 20px;
}

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

.banner-copy-subtitle {
    font-size: 14px;
    opacity: 0.92;
}

.banner-orb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(23, 215, 246, 0.45);
}

.amount-grid,
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.amount-btn {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #fff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.amount-btn.active,
.amount-btn.selected,
.amount-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.screenshot-area,
.upload-area,
.withdrawal-info,
.bank-section {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(17, 17, 17, 0.06);
    margin-bottom: 14px;
}

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

.recharge-record {
    float: none !important;
    margin: 0 0 16px auto !important;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

thead tr {
    background: #f4f4f6 !important;
}

tbody tr {
    background: #fff;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(366px, calc(100% - 16px));
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #8f9198;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

.nav-item i {
    font-size: 22px;
}

.nav-item.active {
    color: #111;
    transform: translateY(-2px);
}

.nav-item-center i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--theme-cyan), var(--theme-primary));
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.22);
}

.page-preloader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-circle,
.loading {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(255, 51, 102, 0.12);
    border-top-color: var(--theme-primary);
    animation: spin 0.9s linear infinite;
}

.page-preloader p {
    margin-top: 14px;
    font-weight: 600;
    color: #555;
}

.fade-in {
    animation: fadeIn 0.35s ease;
    position: relative;
    z-index: 1;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

    .app-header {
        width: 100%;
    }

    .main-content {
        height: calc(100dvh - 188px);
    }

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

    .balance-hero-grid,
    .balance-grid,
    .quick-actions,
    .action-grid {
        grid-template-columns: 1fr;
    }

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

:root {
    --theme-primary-rgb: 33, 94, 99;
    --theme-primary: #215e63;
    --theme-primary-300: #86a9a8;
    --theme-primary-500: #215e63;
    --theme-primary-700: #18484c;
    --theme-primary-800: #12393d;
    --theme-primary-dark: #12393d;
    --theme-primary-soft: rgba(33, 94, 99, 0.12);
    --theme-cyan: #cfe1d7;
    --theme-dark: #12393d;
    --theme-dark-soft: #2f6e72;
    --theme-surface: #fffdf8;
    --theme-surface-soft: #f7f2e8;
    --theme-text: #223133;
    --theme-muted: #6b7a7c;
    --theme-border: rgba(18, 57, 61, 0.1);
    --theme-shadow: 0 20px 42px rgba(18, 57, 61, 0.1);
    --theme-radius: 26px;
    --theme-accent-500: #d08b49;
    --theme-tint: #f5efe4;
    --theme-bg: #f3ede3;
}

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: 'Sora', 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 {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.03em;
}

body {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.65), transparent 20%),
        linear-gradient(180deg, #fbf7ef 0%, #efe7d8 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 {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.3), transparent 16%),
        linear-gradient(180deg, #dfe8e1 0, #f0eadf 220px, #fbf8f1 220px, #fbf8f1 100%);
}

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

body.auth-page .app-container,
body.user-page .app-container {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(251, 248, 241, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 70px rgba(18, 57, 61, 0.12);
    border-radius: 28px;
    padding-bottom: 120px;
}

.app-header {
    background: linear-gradient(180deg, rgba(243, 238, 226, 0.92), rgba(243, 238, 226, 0.18));
    padding-top: 10px;
}

.header-content {
    min-height: 60px;
    padding: 8px 12px;
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.86);
    border: 1px solid rgba(18, 57, 61, 0.08);
    box-shadow: 0 12px 28px rgba(18, 57, 61, 0.08);
}

.header-brand {
    gap: 10px;
}

.header-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #12393d, #2f6e72);
    color: #fff;
    box-shadow: 0 12px 22px rgba(18, 57, 61, 0.16);
    flex: 0 0 auto;
}

.header-brand-meta {
    min-width: 0;
}

.header-brand-kicker {
    color: #7b8684;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.app-title {
    font-size: 23px;
    line-height: 0.96;
    color: #111111;
}

body.user-page .app-title {
    color: #111111;
}

body.user-page .header-brand-kicker {
    color: #6f7878;
}

.language-selector {
    background: #f7f2e8;
    border-color: rgba(18, 57, 61, 0.08);
    color: var(--theme-dark);
    box-shadow: none;
}

.language-menu {
    background: rgba(255, 253, 248, 0.98);
    border-color: rgba(18, 57, 61, 0.08);
    box-shadow: 0 18px 36px rgba(18, 57, 61, 0.12);
}

.language-option:hover {
    background: rgba(33, 94, 99, 0.08);
    color: var(--theme-dark-soft);
}

.language-option.active {
    background: linear-gradient(135deg, #12393d, #2f6e72);
}

.notification-icon {
    background: linear-gradient(135deg, #12393d, #2f6e72);
    box-shadow: 0 12px 22px rgba(18, 57, 61, 0.16);
}

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

.dropdown-menu {
    box-shadow: 0 20px 40px rgba(18, 57, 61, 0.12);
}

.main-content {
    padding: 16px 16px 34px;
}

.auth-container {
    position: relative;
    z-index: 1;
}

.auth-hero {
    min-height: 238px;
    padding: 30px 24px 18px;
    border-radius: 30px;
}

.auth-hero::before {
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.14), transparent 16%),
        linear-gradient(145deg, #12393d, #2f6e72 58%, #d08b49);
}

body.route-login .auth-hero.login-hero::before {
    background:
        linear-gradient(115deg, rgba(18, 57, 61, 0.78), rgba(18, 57, 61, 0.24)),
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.14), transparent 16%),
        url('/assets/images/bg1.jpg') center/cover;
}

.auth-logo-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-hero h2 {
    color: #fff;
    font-size: 40px;
    line-height: 0.95;
}

.auth-hero p {
    color: rgba(255, 255, 255, 0.8);
}

.auth-card {
    background: linear-gradient(180deg, #fffdf8, #f7f2e8);
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -12px 30px rgba(18, 57, 61, 0.12);
}

.auth-card.compact-center {
    margin-top: 40px;
    border-radius: 32px;
}

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

.form-group .input-shell {
    min-height: 58px;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(18, 57, 61, 0.08);
}

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

.btn-primary,
.btn-recharge,
#withdrawButton,
.btn-change-password,
.hero-cta,
.quick-start-cta,
.invitation-start-btn {
    background: linear-gradient(135deg, #12393d, #2f6e72);
    box-shadow: 0 16px 30px rgba(18, 57, 61, 0.18);
}

.btn-outline {
    background: rgba(255, 253, 248, 0.96);
    color: var(--theme-dark);
    border-color: rgba(18, 57, 61, 0.1);
}

.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 {
    background: linear-gradient(180deg, #fffdf8, #f7f2e8);
    border: 1px solid rgba(18, 57, 61, 0.08);
    box-shadow: var(--theme-shadow);
}

.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(33, 94, 99, 0.08), rgba(255, 255, 255, 0));
}

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

.home-hero-shell {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 22%),
        linear-gradient(135deg, #12393d, #2f6e72 58%, #d08b49);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 26px 48px rgba(18, 57, 61, 0.18);
}

.home-hero-shell::before,
.home-hero-shell::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.home-hero-shell::before {
    width: 150px;
    height: 150px;
    top: -54px;
    right: -32px;
}

.home-hero-shell::after {
    width: 110px;
    height: 110px;
    bottom: -42px;
    left: -24px;
}

.home-copy-panel,
.home-hero-media {
    position: relative;
    z-index: 1;
}

.home-headline {
    margin-top: 14px;
    font-size: 40px;
    line-height: 0.94;
    color: #fff;
}

.home-headline span {
    display: block;
    color: #f4dfb4;
}

.home-description {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.65;
    max-width: 250px;
}

.home-stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.home-stat-card {
    min-height: 88px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.home-stat-card.primary {
    background: rgba(255, 255, 255, 0.12);
}

.home-stat-card.accent {
    background: rgba(208, 139, 73, 0.22);
}

.home-stat-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.home-stat-card strong {
    display: block;
    font-size: 18px;
    line-height: 1.3;
}

.home-link-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.hero-cta {
    flex: 1;
    width: auto;
    min-height: 54px;
    margin-top: 0;
    border-radius: 18px;
}

.home-link-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-hero-media {
    min-height: 258px;
}

.home-hero-frame {
    position: relative;
    width: min(218px, 100%);
    margin-left: auto;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 42px rgba(8, 27, 29, 0.28);
}

.home-hero-frame img {
    width: 100%;
    height: 258px;
    object-fit: cover;
}

.home-hero-badge {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.9);
    color: var(--theme-dark);
    box-shadow: 0 10px 24px rgba(18, 57, 61, 0.12);
}

.home-hero-badge strong,
.home-hero-badge span {
    display: block;
}

.home-hero-badge strong {
    font-size: 14px;
    margin-bottom: 4px;
}

.home-hero-badge span {
    color: #7a6c59;
    font-size: 12px;
    font-weight: 700;
}

.home-snapshot-card {
    padding: 18px;
    margin-bottom: 16px;
}

.snapshot-count {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 94, 99, 0.08);
    color: var(--theme-dark);
    font-size: 13px;
    font-weight: 800;
}

.snapshot-list {
    display: grid;
    gap: 12px;
}

.snapshot-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(33, 94, 99, 0.05);
}

.snapshot-thumb img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
}

.snapshot-copy {
    min-width: 0;
}

.snapshot-copy strong {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--theme-dark);
}

.snapshot-copy span {
    display: block;
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 11px;
}

.snapshot-value {
    color: var(--theme-accent-500);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-topbar,
.balance-hero,
.task-progress-card,
.profile-summary-card,
.quick-start-card,
.partner-card.partner-dark {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 26%),
        linear-gradient(135deg, #12393d, #2f6e72 58%, #d08b49);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 44px rgba(18, 57, 61, 0.14);
}

.dashboard-topbar::before,
.profile-summary-card::before {
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-ticker {
    border-color: rgba(18, 57, 61, 0.08);
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 14px 26px rgba(18, 57, 61, 0.08);
}

.ticker-icon {
    color: var(--theme-accent-500);
    background: rgba(208, 139, 73, 0.12);
    border-radius: 50%;
}

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

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

.ticker-track span::after {
    background: #f4dfb4;
}

.welcome-line {
    color: #f4dfb4;
}

.metric-card.dark,
.summary-stat-card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.metric-card.dark .metric-label,
.summary-stat-label,
.profile-income-card .metric-label {
    color: rgba(255, 255, 255, 0.72);
}

.summary-board-stats .summary-stat-card {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(245, 239, 228, 0.96));
    border: 1px solid rgba(18, 57, 61, 0.08);
    box-shadow: 0 14px 26px rgba(18, 57, 61, 0.08);
}

.summary-board-stats .summary-stat-label {
    color: var(--theme-muted);
}

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

.quick-start-kicker {
    background: rgba(255, 255, 255, 0.12);
}

.summary-board {
    background: linear-gradient(180deg, #fffdf8, #f6f0e4);
}

.summary-board-badge,
.status-pill,
.badge {
    background: rgba(33, 94, 99, 0.08);
    color: var(--theme-dark);
}

.summary-accent-warm {
    color: var(--theme-accent-500) !important;
}

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

.feature-icon,
.page-header-icon,
.menu-icon {
    background: linear-gradient(135deg, rgba(33, 94, 99, 0.12), rgba(208, 139, 73, 0.22));
    color: var(--theme-dark);
}

.task-tabs {
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid rgba(18, 57, 61, 0.08);
    box-shadow: 0 14px 28px rgba(18, 57, 61, 0.08);
}

.tab-btn.active {
    background: linear-gradient(135deg, #12393d, #2f6e72);
    color: #fff;
    box-shadow: 0 12px 24px rgba(18, 57, 61, 0.16);
}

.task-media-card {
    border-radius: 24px;
}

.task-media-card img,
.task-thumb {
    width: 92px;
    height: 92px;
    border-radius: 20px;
    box-shadow: 0 12px 22px rgba(18, 57, 61, 0.1);
}

.action-tile,
.quick-link {
    background: linear-gradient(180deg, #fffdf8, #f6f0e4);
    border: 1px solid rgba(18, 57, 61, 0.08);
    color: var(--theme-dark);
    box-shadow: 0 14px 26px rgba(18, 57, 61, 0.08);
}

.action-tile.alt {
    background: linear-gradient(135deg, #f4ead3, #fffaf0);
}

.action-tile.dark-banner {
    background: linear-gradient(135deg, #12393d, #2f6e72 58%, #d08b49);
    box-shadow: 0 20px 36px rgba(18, 57, 61, 0.14);
}

.banner-orb {
    background: rgba(255, 255, 255, 0.18);
}

.profile-avatar img {
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 30px rgba(18, 57, 61, 0.12);
}

.profile-info h2,
.username-vip,
.profile-subline strong,
.settings-list a {
    color: var(--theme-dark);
}

.profile-subline {
    background: rgba(33, 94, 99, 0.06);
    color: var(--theme-muted);
}

.task-focus-card {
    background: linear-gradient(180deg, #fffdf8, #f6f0e4);
}

.task-focus-image-shell,
.task-modal-image-shell {
    background: #f7f2e8;
    border-radius: 24px;
    box-shadow: 0 14px 26px rgba(18, 57, 61, 0.08);
}

.task-focus-status,
.task-focus-price,
.task-modal-price,
.task-earn-value {
    color: var(--theme-accent-500);
}

.task-payment-modal {
    background-color: rgba(18, 57, 61, 0.32);
}

.task-payment-dialog {
    background: linear-gradient(180deg, #fffdf8, #f7f2e8);
    box-shadow: 0 20px 40px rgba(18, 57, 61, 0.14);
}

.bottom-nav {
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(18, 57, 61, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(18, 57, 61, 0.12);
    bottom: calc(18px + env(safe-area-inset-bottom));
    padding-bottom: 8px;
}

.nav-item {
    color: #8a9696;
}

.nav-item.active {
    color: var(--theme-dark);
}

.nav-item-center i {
    background: linear-gradient(135deg, #12393d, #2f6e72);
    box-shadow: 0 12px 22px rgba(18, 57, 61, 0.18);
}

.page-preloader {
    background: rgba(255, 252, 246, 0.94);
}

.loader-circle,
.loading {
    border-color: rgba(33, 94, 99, 0.12);
    border-top-color: var(--theme-dark);
}

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

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

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

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

:root {
    --theme-success-bg: #e4efe9;
    --theme-success-500: #2d6c57;
    --theme-danger-bg: #f6e6df;
    --theme-danger-500: #9a4d3b;
    --theme-info-bg: #eef2ea;
    --theme-info-500: #536d70;
}

body.route-support-request {
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.34), transparent 18%),
        linear-gradient(180deg, #dfe8e1 0, #f0eadf 220px, #fbf8f1 220px, #fbf8f1 100%);
}

.section-intro {
    margin-bottom: 18px;
}

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

.section-intro p {
    margin: 0;
    color: var(--theme-muted);
    font-size: 13px;
    line-height: 1.6;
}

.soft-card {
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(245, 239, 228, 0.94));
    border: 1px solid rgba(18, 57, 61, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.history-empty-state {
    text-align: center;
    color: var(--theme-muted);
    margin-top: 0;
}

.status-text-pending {
    color: #a86b1f;
}

.status-text-success {
    color: var(--theme-success-500);
}

.status-text-muted {
    color: #788486;
}

.status-text-danger {
    color: var(--theme-danger-500);
}
