/* ================= GOOGLE RESET ================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

:root {

    --primary-color: #2563eb;

    --primary-dark: #1d4ed8;

    --secondary-color: #06b6d4;

    --accent-color: #7c3aed;

    --page-background: #eef4ff;

    --card-background: #ffffff;

    --soft-blue: #dbeafe;

    --text-dark: #172033;

    --text-light: #64748b;

    --border-color: #e2e8f0;

    --navigation-height: 78px;

    --container-width: 540px;

    --small-shadow: 0 5px 15px rgba(37, 99, 235, 0.08);

    --card-shadow: 0 10px 28px rgba(30, 64, 175, 0.12);

}

html {

    scroll-behavior: smooth;

}

body {

    min-height: 100vh;

    background: #dce7f8;

    color: var(--text-dark);

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;

}

button,

a {

    font-family: inherit;

    -webkit-tap-highlight-color: transparent;

}

button {

    border: none;

    outline: none;

    cursor: pointer;

}

a {

    color: inherit;

    text-decoration: none;

}

img {

    display: block;

    max-width: 100%;

}

/* ================= APP CONTAINER ================= */

.app-container {

    position: relative;

    width: 100%;

    max-width: var(--container-width);

    min-height: 100vh;

    margin: 0 auto;

    background:

        linear-gradient(

            180deg,

            #dbeafe 0%,

            #eff6ff 32%,

            #f8fafc 70%

        );

    overflow: hidden;

}

.home-main {

    padding: 0 18px 125px;

}

/* ================= HEADER ================= */

.home-header {

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    min-height: 100px;

    padding: 28px 20px 20px;

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

}

.brand-logo {

    display: flex;

    align-items: center;

    justify-content: flex-start;

    width: fit-content;

}

.brand-logo img {

    width: 125px;

    max-height: 64px;

    object-fit: contain;

}

.brand-name {

    color: #ffffff;

    font-size: 25px;

    font-weight: 800;

    text-align: center;

}

.language-button {

    display: flex;

    align-items: center;

    justify-content: center;

    justify-self: end;

    width: 48px;

    height: 48px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);

}

.country-flag {

    font-size: 27px;

}

/* ================= HERO SECTION ================= */

.hero-section {

    margin-top: -1px;

    overflow: hidden;

    border-radius: 10px;

    background: #cbd5e1;

    box-shadow: var(--card-shadow);

}

.hero-image {

    width: 100%;

    height: 245px;

    object-fit: cover;

}

/* ================= ANNOUNCEMENT ================= */

.announcement-section {

    display: flex;

    align-items: center;

    min-height: 72px;

    margin-top: 22px;

    overflow: hidden;

    border: 2px solid rgba(37, 99, 235, 0.08);

    border-radius: 16px;

    background: var(--card-background);

    box-shadow: var(--small-shadow);

}

.announcement-icon {

    display: flex;

    flex: 0 0 76px;

    align-items: center;

    justify-content: center;

    align-self: stretch;

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

    color: #ffffff;

    font-size: 28px;

    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);

}

.announcement-content {

    flex: 1;

    padding: 12px 16px;

    overflow: hidden;

}

.announcement-content p {

    color: var(--text-dark);

    font-size: 16px;

    font-weight: 700;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}

/* ================= QUICK ACTIONS ================= */

.quick-actions {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 9px;

    margin-top: 42px;

}

.quick-action-item {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    min-width: 0;

    min-height: 82px;

    padding: 43px 3px 12px;

    border-radius: 15px;

    background: var(--card-background);

    box-shadow: var(--small-shadow);

    transition:

        transform 0.2s ease,

        box-shadow 0.2s ease;

    flex-direction: column;

}

.quick-action-item:active {

    transform: scale(0.95);

}

.quick-action-icon {

    position: absolute;

    top: -27px;

    left: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 58px;

    height: 58px;

    border: 4px solid rgba(255, 255, 255, 0.75);

    border-radius: 50%;

    color: #ffffff;

    font-size: 23px;

    transform: translateX(-50%);

    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.15);

}

.recharge-icon {

    background: linear-gradient(135deg, #2563eb, #60a5fa);

}

.task-icon {

    background: linear-gradient(135deg, #7c3aed, #a78bfa);

}

.checkin-icon {

    background: linear-gradient(135deg, #0891b2, #22d3ee);

}

.withdraw-icon {

    background: linear-gradient(135deg, #0f766e, #2dd4bf);

}

.quick-action-name {

    width: 100%;

    overflow: hidden;

    color: var(--text-dark);

    font-size: 12px;

    font-weight: 700;

    text-align: center;

    white-space: nowrap;

    text-overflow: ellipsis;

}

/* ================= SECURITY OPERATIONS ================= */

.security-section {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    min-height: 64px;

    margin-top: 35px;

    padding: 14px 18px;

    border: 1px solid rgba(6, 182, 212, 0.18);

    border-radius: 14px;

    background:

        linear-gradient(

            110deg,

            rgba(37, 99, 235, 0.16),

            rgba(6, 182, 212, 0.22)

        );

    box-shadow: var(--small-shadow);

}

.security-label {

    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 0;

    font-size: 15px;

    font-weight: 700;

}

.security-label i {

    color: var(--primary-color);

    font-size: 19px;

}

.security-duration {

    color: var(--text-dark);

    font-size: 13px;

    font-weight: 700;

    text-align: right;

}

/* ================= INCOME CARD ================= */

.income-card {

    margin-top: 22px;

    padding: 25px 24px;

    overflow: hidden;

    border: 1px solid rgba(37, 99, 235, 0.1);

    border-radius: 22px;

    background:

        linear-gradient(

            145deg,

            #ffffff 0%,

            #dbeafe 45%,

            #a5f3fc 100%

        );

    box-shadow: var(--card-shadow);

}

.income-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

}

.income-label {

    color: var(--text-light);

    font-size: 16px;

    font-weight: 600;

}

.total-income {

    margin-top: 5px;

    color: var(--text-dark);

    font-size: 34px;

    font-weight: 800;

}

.income-image {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 88px;

    height: 78px;

    border-radius: 22px;

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

    color: #ffffff;

    font-size: 42px;

    transform: rotate(-4deg);

    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);

}

.income-details {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

    margin-top: 31px;

}

.income-detail p {

    margin-bottom: 5px;

    color: var(--text-light);

    font-size: 14px;

    font-weight: 600;

}

.income-detail strong {

    color: var(--text-dark);

    font-size: 22px;

}

/* ================= PLAN SECTION ================= */

.plan-section {

    margin-top: 30px;

}

.plan-tabs {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    margin-bottom: 15px;

}

.plan-tab {

    position: relative;

    padding: 15px 8px;

    background: transparent;

    color: var(--text-light);

    font-size: 19px;

    font-weight: 700;

}

.plan-tab.active {

    color: var(--primary-color);

}

.plan-tab.active::after {

    position: absolute;

    bottom: 0;

    left: 50%;

    width: 50px;

    height: 5px;

    border-radius: 10px;

    background: var(--primary-color);

    content: "";

    transform: translateX(-50%);

}

.plan-content {

    display: none;

}

.plan-content.active {

    display: block;

}

/* ================= COMMISSION CARD ================= */

.commission-card,

.salary-card {

    overflow: hidden;

    padding: 25px 20px;

    border: 1px solid var(--border-color);

    border-radius: 20px;

    background: var(--card-background);

    box-shadow: var(--small-shadow);

}

.commission-network-image {

    width: 100%;

    min-height: 230px;

    border-radius: 15px;

    background: #eff6ff;

    object-fit: contain;

}

.commission-levels {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin: 22px 4px;

}

.commission-level {

    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 14px;

    font-weight: 800;

}

.level-dot {

    display: inline-block;

    flex: 0 0 14px;

    width: 14px;

    height: 14px;

    border-radius: 50%;

}

.level-a {

    color: #f97316;

}

.level-a .level-dot {

    background: #f97316;

}

.level-b {

    color: #2563eb;

}

.level-b .level-dot {

    background: #2563eb;

}

.level-c {

    color: #14b8a6;

}

.level-c .level-dot {

    background: #14b8a6;

}

.commission-title {

    margin: 25px 0 16px;

    color: var(--text-dark);

    font-size: 21px;

    text-align: center;

}

.commission-introduction-image {

    width: 100%;

    min-height: 300px;

    border-radius: 12px;

    background: #eff6ff;

    object-fit: contain;

}

.salary-card {

    min-height: 220px;

    text-align: center;

}

.salary-card h2 {

    margin-bottom: 14px;

    color: var(--primary-color);

}

.salary-card p {

    color: var(--text-light);

}

/* ================= ABOUT SECTION ================= */

.about-section {

    margin-top: 20px;

    padding: 28px 20px 24px;

    border: 1px solid var(--border-color);

    border-radius: 20px;

    background: var(--card-background);

    box-shadow: var(--small-shadow);

}

.section-title {

    margin-bottom: 22px;

    color: var(--text-dark);

    font-size: 23px;

    text-align: center;

}

.about-image {

    width: 100%;

    height: 245px;

    border-radius: 15px;

    background: #dbeafe;

    object-fit: cover;

}

.about-content {

    padding-top: 18px;

}

.about-content h3 {

    color: var(--text-dark);

    font-size: 21px;

    line-height: 1.35;

}

.about-content p {

    margin-top: 12px;

    color: var(--text-light);

    font-size: 15px;

    line-height: 1.6;

}

.more-button {

    display: block;

    min-width: 170px;

    margin: 24px auto 0;

    padding: 13px 28px;

    border-radius: 30px;

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;

    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);

}

/* ================= FLOATING ACTIONS ================= */

.floating-actions {

    position: fixed;

    right: max(

        12px,

        calc((100vw - var(--container-width)) / 2 + 12px)

    );

    bottom: 105px;

    z-index: 50;

    display: flex;

    align-items: center;

    gap: 12px;

    flex-direction: column;

}

.floating-button {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    border: 3px solid #ffffff;

    border-radius: 50%;

    color: #ffffff;

    font-size: 20px;

    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.2);

}

.theme-button {

    background: #7c3aed;

}

.channels-button {

    background: #06b6d4;

}

/* =====================================================
   OFFICIAL CHANNELS POPUP

   Channel names and links are loaded from the backend.
   Do not hard-code Telegram/Instagram URLs in this CSS.
===================================================== */

.channels-button {
    background:
        linear-gradient(
            135deg,
            #0891b2,
            #2563eb
        );
}

.home-channel-dialog {
    max-width: 460px;
    overflow: hidden;
    text-align: left;
}

.home-channel-dialog .home-modal-icon {
    margin-right: auto;
    margin-left: auto;
}

.home-channel-dialog > h2,
.home-channel-dialog > p {
    text-align: center;
}

.home-channel-list {
    display: grid;
    gap: 11px;
    margin-top: 20px;
}

.home-channel-link {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid #dbe7f3;
    border-radius: 16px;
    background: #f8fbff;
    color: var(--text-dark);
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.home-channel-link:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.home-channel-link:active {
    transform: scale(0.98);
}

.home-channel-link:focus-visible,
.home-channel-retry:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}

.home-channel-brand-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 23px;
}

.home-channel-link[data-channel-platform="telegram"]
.home-channel-brand-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.home-channel-link[data-channel-platform="instagram"]
.home-channel-brand-icon {
    background: #fce7f3;
    color: #db2777;
}

.home-channel-link[data-channel-platform="whatsapp"]
.home-channel-brand-icon {
    background: #dcfce7;
    color: #16a34a;
}

.home-channel-link[data-channel-platform="youtube"]
.home-channel-brand-icon {
    background: #fee2e2;
    color: #dc2626;
}

.home-channel-link[data-channel-platform="facebook"]
.home-channel-brand-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.home-channel-link[data-channel-platform="discord"]
.home-channel-brand-icon {
    background: #e0e7ff;
    color: #4f46e5;
}

.home-channel-copy {
    min-width: 0;
}

.home-channel-copy strong,
.home-channel-copy small {
    display: block;
}

.home-channel-copy strong {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.home-channel-copy small {
    margin-top: 4px;
    color: var(--text-light);
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.home-channel-open-icon {
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.home-channel-status {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 128px;
    margin-top: 18px;
    padding: 24px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--text-light);
    text-align: center;
}

.home-channel-status > i {
    color: var(--primary-color);
    font-size: 25px;
}

.home-channel-status p {
    max-width: 300px;
    margin: 0;
    line-height: 1.5;
}

.home-channel-retry {
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 22px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}

.home-channel-list[hidden],
.home-channel-status[hidden],
.home-channel-retry[hidden] {
    display: none !important;
}

body.dark-theme .home-channel-link,
html.dark-theme .home-channel-link,
html[data-marathon-theme="dark"] .home-channel-link {
    border-color: #334155;
    background: #172033;
    color: #f8fafc;
}

body.dark-theme .home-channel-link:hover,
html.dark-theme .home-channel-link:hover,
html[data-marathon-theme="dark"] .home-channel-link:hover {
    border-color: #3b82f6;
    background: #1e293b;
}

body.dark-theme .home-channel-copy strong,
html.dark-theme .home-channel-copy strong,
html[data-marathon-theme="dark"] .home-channel-copy strong {
    color: #f8fafc;
}

body.dark-theme .home-channel-copy small,
html.dark-theme .home-channel-copy small,
html[data-marathon-theme="dark"] .home-channel-copy small {
    color: #94a3b8;
}

body.dark-theme .home-channel-open-icon,
html.dark-theme .home-channel-open-icon,
html[data-marathon-theme="dark"] .home-channel-open-icon {
    color: #94a3b8;
}

body.dark-theme .home-channel-status,
html.dark-theme .home-channel-status,
html[data-marathon-theme="dark"] .home-channel-status {
    border-color: #475569;
    background: #172033;
    color: #cbd5e1;
}

body.dark-theme .home-channel-retry,
html.dark-theme .home-channel-retry,
html[data-marathon-theme="dark"] .home-channel-retry {
    border-color: #1d4ed8;
    background: #172554;
    color: #bfdbfe;
}

@media (max-width: 420px) {
    .home-channel-dialog {
        padding-right: 17px;
        padding-left: 17px;
    }

    .home-channel-link {
        grid-template-columns: 46px minmax(0, 1fr) 28px;
        gap: 10px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .home-channel-brand-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
}

.support-button {

    background: #f43f5e;

}

/* ================= BOTTOM NAVIGATION ================= */

.bottom-navigation {

    position: fixed;

    bottom: 0;

    left: 50%;

    z-index: 100;

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    width: 100%;

    max-width: var(--container-width);

    min-height: var(--navigation-height);

    padding: 9px 8px calc(8px + env(safe-area-inset-bottom));

    border-radius: 22px 22px 0 0;

    background: #ffffff;

    box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.12);

    transform: translateX(-50%);

}

.nav-item {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 6px;

    min-width: 0;

    color: #64748b;

    font-size: 12px;

    font-weight: 700;

    flex-direction: column;

}

.nav-item > i {

    font-size: 21px;

}

.nav-item.active {

    color: var(--primary-color);

}

.vip-nav-item {

    justify-content: flex-end;

}

.vip-icon {

    position: absolute;

    top: -31px;

    left: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 58px;

    height: 58px;

    border: 5px solid #ffffff;

    border-radius: 50%;

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

    color: #ffffff;

    font-size: 22px;

    transform: translateX(-50%);

    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);

}

.vip-nav-item > span:last-child {

    margin-top: 31px;

}

/* ================= CLICK EFFECTS ================= */

.language-button:active,

.floating-button:active,

.more-button:active,

.plan-tab:active {

    transform: scale(0.94);

}

.more-button,

.floating-button,

.language-button {

    transition:

        transform 0.2s ease,

        opacity 0.2s ease;

}

/* ================= RESPONSIVE DESIGN ================= */

@media (min-width: 600px) {

    .app-container {

        box-shadow: 0 0 40px rgba(15, 23, 42, 0.15);

    }

}

@media (max-width: 420px) {

    .home-header {

        min-height: 100px;

        padding-right: 15px;

        padding-left: 15px;

    }

    .brand-logo img {

        width: 100px;

    }

    .brand-name {

        font-size: 22px;

    }

    .language-button {

        width: 43px;

        height: 43px;

    }

    .home-main {

        padding-right: 13px;

        padding-left: 13px;

    }

    .hero-image {

        height: 215px;

    }

    .quick-actions {

        gap: 6px;

    }

    .quick-action-icon {

        width: 52px;

        height: 52px;

        font-size: 20px;

    }

    .quick-action-name {

        font-size: 10px;

    }

    .security-section {

        padding-right: 12px;

        padding-left: 12px;

    }

    .security-label,

    .security-duration {

        font-size: 12px;

    }

    .income-card {

        padding: 22px 18px;

    }

    .total-income {

        font-size: 30px;

    }

    .income-image {

        width: 72px;

        height: 66px;

        font-size: 34px;

    }

    .plan-tab {

        font-size: 17px;

    }

    .commission-card {

        padding-right: 14px;

        padding-left: 14px;

    }

    .commission-level {

        font-size: 12px;

    }

    .about-section {

        padding-right: 16px;

        padding-left: 16px;

    }

}

/* ==================================================

   HOME PAGE FUNCTIONAL STYLES

================================================== */

/* ================= ABOUT MORE / LESS ================= */

.about-description {

    display: -webkit-box;

    overflow: hidden;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    line-clamp: 3;

}

.about-section.expanded .about-description {

    display: block;

    overflow: visible;

    -webkit-line-clamp: unset;

    line-clamp: unset;

}

.more-button {

    display: flex !important;

    align-items: center;

    justify-content: center;

    min-width: 170px;

    min-height: 50px;

    margin: 24px auto 0;

    padding: 12px 28px;

    border-radius: 30px;

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;

}

/* ================= DARK THEME ================= */

body.dark-theme {

    --page-background: #0f172a;

    --card-background: #1e293b;

    --soft-blue: #1e3a8a;

    --text-dark: #f8fafc;

    --text-light: #cbd5e1;

    --border-color: #334155;

    background: #020617;

}

body.dark-theme .app-container {

    background:

        linear-gradient(

            180deg,

            #0f172a,

            #111827 50%,

            #020617

        );

}

body.dark-theme .income-card {

    background:

        linear-gradient(

            145deg,

            #1e293b,

            #164e63

        );

}

body.dark-theme .security-section {

    background:

        linear-gradient(

            110deg,

            rgba(37, 99, 235, 0.25),

            rgba(6, 182, 212, 0.18)

        );

}

body.dark-theme .commission-network-image,

body.dark-theme .commission-introduction-image,

body.dark-theme .about-image {

    background: #0f172a;

}

body.dark-theme .bottom-navigation {

    background: #172033;

}

body.dark-theme .nav-item {

    color: #cbd5e1;

}

body.dark-theme .nav-item.active {

    color: #38bdf8;

}

body.dark-theme .vip-icon {

    border-color: #172033;

}

body.dark-theme .home-modal-dialog {

    background: #1e293b;

}

body.dark-theme .home-modal-dialog textarea {

    border-color: #334155;

    background: #0f172a;

    color: #ffffff;

}

body.dark-theme .home-support-account-note,
html.dark-theme .home-support-account-note,
html[data-marathon-theme="dark"] .home-support-account-note,
body.dark-theme .home-support-count,
html.dark-theme .home-support-count,
html[data-marathon-theme="dark"] .home-support-count {

    color: #94a3b8;

}

body.dark-theme .home-support-status.is-error,
html.dark-theme .home-support-status.is-error,
html[data-marathon-theme="dark"] .home-support-status.is-error {

    border-color: #7f1d1d;

    background: #450a0a;

    color: #fecaca;

}

body.dark-theme .home-support-status.is-success,
html.dark-theme .home-support-status.is-success,
html[data-marathon-theme="dark"] .home-support-status.is-success {

    border-color: #166534;

    background: #052e16;

    color: #bbf7d0;

}

/* ================= MODAL ================= */

body.modal-open {

    overflow: hidden;

}

.home-modal {

    position: fixed;

    inset: 0;

    z-index: 500;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    opacity: 0;

    visibility: hidden;

    transition:

        opacity 0.25s ease,

        visibility 0.25s ease;

}

.home-modal.open {

    opacity: 1;

    visibility: visible;

}

.home-modal-backdrop {

    position: absolute;

    inset: 0;

    background: rgba(2, 6, 23, 0.68);

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);

}

.home-modal-dialog {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 430px;

    padding: 28px 22px 22px;

    border-radius: 22px;

    background: #ffffff;

    text-align: center;

    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);

    transform: translateY(25px) scale(0.96);

    transition: transform 0.25s ease;

}

.home-modal.open .home-modal-dialog {

    transform: translateY(0) scale(1);

}

.home-modal-close {

    position: absolute;

    top: 13px;

    right: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 37px;

    height: 37px;

    border-radius: 50%;

    background: #eff6ff;

    color: #64748b;

    font-size: 18px;

}

.home-modal-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 65px;

    height: 65px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

    color: #ffffff;

    font-size: 27px;

}

.home-modal-dialog h2 {

    color: var(--text-dark);

    font-size: 22px;

}

.home-modal-dialog p {

    margin-top: 7px;

    color: var(--text-light);

    font-size: 13px;

}

.home-modal-dialog textarea {

    width: 100%;

    margin-top: 18px;

    padding: 14px;

    resize: vertical;

    border: 2px solid #e2e8f0;

    border-radius: 14px;

    outline: none;

    color: var(--text-dark);

    font-size: 14px;

}

.home-modal-dialog textarea:focus {

    border-color: var(--primary-color);

    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);

}

.home-support-meta {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;

    margin-top: 8px;

    color: #64748b;

    font-size: 11px;

    line-height: 1.45;

    text-align: left;

}

.home-support-account-note {

    flex: 1;

}

.home-support-count {

    flex: 0 0 auto;

    font-variant-numeric: tabular-nums;

    font-weight: 700;

}

.home-support-status {

    margin-top: 13px !important;

    padding: 10px 12px;

    border: 1px solid transparent;

    border-radius: 12px;

    font-size: 12px !important;

    font-weight: 700;

    line-height: 1.45;

    text-align: left;

    overflow-wrap: anywhere;

}

.home-support-status.is-error {

    border-color: #fecaca;

    background: #fef2f2;

    color: #b91c1c;

}

.home-support-status.is-success {

    border-color: #bbf7d0;

    background: #f0fdf4;

    color: #166534;

    text-align: center;

}

.home-support-dialog.is-success .home-modal-icon {

    background: linear-gradient(135deg, #16a34a, #22c55e);

}

.home-message-submit {

    width: 100%;

    min-height: 52px;

    margin-top: 15px;

    border-radius: 27px;

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

    color: #ffffff;

    font-size: 15px;

    font-weight: 800;

    transition:

        opacity 0.2s ease,

        transform 0.2s ease;

}

.home-message-submit:disabled {

    cursor: wait;

    opacity: 0.72;

}

.home-message-submit:not(:disabled):active {

    transform: scale(0.98);

}

.home-message-submit-spinner {

    margin-left: 8px;

}

/* ================= TOAST ================= */

.home-toast {

    position: fixed;

    bottom: 105px;

    left: 50%;

    z-index: 700;

    width: max-content;

    max-width: calc(100% - 40px);

    padding: 13px 20px;

    border-radius: 25px;

    background: #172033;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    text-align: center;

    opacity: 0;

    pointer-events: none;

    transform: translate(-50%, 25px);

    transition:

        opacity 0.25s ease,

        transform 0.25s ease;

    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);

}

.home-toast.show {

    opacity: 1;

    transform: translate(-50%, 0);

}

/* ================= MOVING ANNOUNCEMENTS ================= */

.announcement-section {

    cursor: default;

}

.announcement-content {

    flex: 1;

    padding: 0 16px;

    overflow: hidden;

}

.announcement-track {

    display: flex;

    align-items: center;

    width: max-content;

    animation: moveAnnouncements 28s linear infinite;

    will-change: transform;

}

.announcement-group {

    display: flex;

    flex-shrink: 0;

    align-items: center;

    gap: 38px;

    padding-right: 38px;

}

.announcement-item {

    position: relative;

    color: var(--text-dark);

    font-size: 15px;

    font-weight: 700;

    white-space: nowrap;

}

.announcement-item::before {

    margin-right: 9px;

    color: var(--primary-color);

    content: "●";

    font-size: 9px;

}

/* Mouse रखने पर announcement रुकेगा */

.announcement-section:hover .announcement-track {

    animation-play-state: paused;

}

@keyframes moveAnnouncements {

    from {

        transform: translateX(0);

    }

    to {

        transform: translateX(-50%);

    }

}

@media (max-width: 440px) {

    .announcement-content {

        padding-right: 12px;

        padding-left: 12px;

    }

    .announcement-track {

        animation-duration: 24s;

    }

    .announcement-group {

        gap: 30px;

        padding-right: 30px;

    }

    .announcement-item {

        font-size: 13px;

    }

}

/* ================= MARATHON HEADER ================= */

.home-header {

    grid-template-columns:

        minmax(0, 1fr)

        auto

        minmax(0, 1fr);

}

/* Text logo */

.brand-wordmark {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: fit-content;

    min-height: 44px;

    padding: 8px 12px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.14);

    color: #ffffff;

    font-size: 17px;

    font-weight: 900;

    letter-spacing: 1px;

    text-transform: uppercase;

    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);

}

.brand-name {

    color: #ffffff;

    font-size: 23px;

    font-weight: 800;

    white-space: nowrap;

}

/* Language Button */

.language-button {

    display: flex;

    align-items: center;

    justify-content: center;

    justify-self: end;

    width: 48px;

    height: 48px;

    overflow: hidden;

    border: none;

    border-radius: 50%;

    background: #ffffff;

    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.2);

}

.india-flag {

    display: block;

    font-size: 28px;

    line-height: 1;

}

@media (max-width: 420px) {

    .brand-wordmark {

        min-height: 40px;

        padding: 7px 9px;

        font-size: 13px;

        letter-spacing: 0.6px;

    }

    .brand-name {

        font-size: 19px;

    }

    .language-button {

        width: 43px;

        height: 43px;

    }

    .india-flag {

        font-size: 25px;

    }

}

@media (max-width: 350px) {

    .brand-wordmark {

        font-size: 11px;

    }

    .brand-name {

        font-size: 17px;

    }

}

/* ==================================================

   MARATHON COMMISSION SECTION

================================================== */

.marathon-commission-card {

    overflow: hidden;

    padding: 22px 18px;

    border: 1px solid var(--border-color);

    border-radius: 20px;

    background: var(--card-background);

    box-shadow: var(--small-shadow);

}

.commission-network-graphic {

    width: 100%;

    overflow: hidden;

    border-radius: 17px;

    background: #f8fbff;

}

.commission-network-graphic svg,

.commission-introduction-graphic svg {

    display: block;

    width: 100%;

    height: auto;

}

/* Commission Legend */

.commission-legend {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    align-items: center;

    gap: 10px;

    margin-top: 20px;

}

.legend-item {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    font-size: 15px;

}

.legend-dot {

    flex: 0 0 15px;

    width: 15px;

    height: 15px;

    border-radius: 50%;

}

.legend-level-a {

    color: #f97316;

}

.legend-level-a .legend-dot {

    background: #f97316;

}

.legend-level-b {

    color: #3b82f6;

}

.legend-level-b .legend-dot {

    background: #3b82f6;

}

.legend-level-c {

    color: #14b8a6;

}

.legend-level-c .legend-dot {

    background: #14b8a6;

}

/* Commission Heading */

.commission-section-title {

    margin: 30px 0 18px;

    color: var(--text-dark);

    font-size: 22px;

    font-weight: 800;

    text-align: center;

}

/* Introduction Image */

.commission-introduction-graphic {

    width: 100%;

    overflow: hidden;

    border-radius: 8px;

    background: #ffffff;

}

/* Dark Theme */

body.dark-theme .marathon-commission-card {

    border-color: #334155;

    background: #1e293b;

}

body.dark-theme .commission-network-graphic {

    background: #f8fbff;

}

/* Responsive */

@media (max-width: 440px) {

    .marathon-commission-card {

        padding: 16px 11px;

    }

    .commission-legend {

        gap: 5px;

    }

    .legend-item {

        gap: 5px;

        font-size: 12px;

    }

    .legend-dot {

        flex-basis: 12px;

        width: 12px;

        height: 12px;

    }

    .commission-section-title {

        margin-top: 24px;

        font-size: 19px;

    }

}

@media (max-width: 350px) {

    .legend-item {

        font-size: 10px;

    }

}

/* =========================================

   MARATHON SALARY PLAN

========================================= */

.marathon-salary-plan {

    width: 100%;

    padding: 14px;

    border-radius: 22px;

    background: linear-gradient(

        180deg,

        #eafcff 0%,

        #f5fbff 45%,

        #eef7ff 100%

    );

}

/* Salary Hero */

.salary-hero {

    position: relative;

    min-height: 270px;

    display: flex;

    align-items: flex-end;

    overflow: hidden;

    padding: 24px;

    border-radius: 20px;

    background-color: #064a63;

    background-image:

        linear-gradient(

            180deg,

            rgba(2, 35, 51, 0.12),

            rgba(2, 35, 51, 0.92)

        ),

        url("assets/images/marathon-office.jpg");

    background-position: center;

    background-size: cover;

    box-shadow: 0 14px 30px rgba(4, 67, 91, 0.22);

}

.salary-hero::after {

    content: "";

    position: absolute;

    top: -70px;

    right: -60px;

    width: 210px;

    height: 210px;

    border-radius: 50%;

    background: rgba(64, 221, 239, 0.22);

}

.salary-hero-content {

    position: relative;

    z-index: 2;

    color: #ffffff;

}

.salary-hero-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.15);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.8px;

    backdrop-filter: blur(6px);

}

.salary-hero h2 {

    margin: 0;

    max-width: 460px;

    font-size: clamp(27px, 6vw, 42px);

    line-height: 1.1;

}

.salary-hero p {

    max-width: 480px;

    margin: 12px 0 0;

    color: rgba(255, 255, 255, 0.86);

    font-size: 15px;

    line-height: 1.6;

}

/* Introduction */

.salary-introduction {

    margin-top: 16px;

    padding: 24px;

    border: 1px solid #d6edf4;

    border-radius: 20px;

    background: #ffffff;

    box-shadow: 0 10px 26px rgba(8, 82, 108, 0.08);

}

.salary-small-title {

    color: #079bb5;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;

}

.salary-introduction h2 {

    margin: 8px 0 14px;

    color: #102a36;

    font-size: 24px;

    line-height: 1.25;

}

.salary-introduction > p {

    margin: 10px 0;

    color: #53656d;

    font-size: 15px;

    line-height: 1.7;

}

.salary-introduction strong {

    color: #073f55;

}

/* Salary Policies */

.salary-policy-list {

    display: grid;

    gap: 10px;

    margin-top: 20px;

}

.salary-policy-item {

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 13px;

    border-radius: 14px;

    background: #effbfe;

}

.salary-policy-icon {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background: linear-gradient(135deg, #0bb6d0, #087c9f);

    color: #ffffff;

}

.salary-policy-item p {

    margin: 0;

    color: #3c535c;

    font-size: 14px;

    line-height: 1.5;

}

.salary-policy-item strong {

    color: #087c9f;

}

/* Salary Position Cards */

.salary-positions {

    display: grid;

    gap: 16px;

    margin-top: 18px;

}

.salary-position-card {

    position: relative;

    overflow: hidden;

    padding: 20px;

    border: 1px solid #d8edf3;

    border-radius: 20px;

    background: #ffffff;

    box-shadow: 0 10px 25px rgba(8, 75, 98, 0.08);

}

.salary-position-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 5px;

    height: 100%;

    background: linear-gradient(

        180deg,

        #10cce1,

        #087b9c

    );

}

.salary-position-header {

    display: flex;

    align-items: center;

    gap: 13px;

}

.salary-position-number {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 15px;

    background: linear-gradient(135deg, #0fc7dd, #087b9c);

    color: #ffffff;

    font-size: 16px;

    font-weight: 900;

}

.salary-position-type {

    color: #09a2bb;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 0.8px;

}

.salary-position-header h3 {

    margin: 4px 0 0;

    color: #142f3a;

    font-size: 20px;

    line-height: 1.25;

}

.salary-team-range {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 16px;

    padding: 9px 12px;

    border-radius: 30px;

    background: #e7faff;

    color: #087d9d;

    font-size: 13px;

    font-weight: 800;

}

.salary-details {

    margin-top: 15px;

}

.salary-details p {

    margin: 9px 0;

    color: #50636b;

    font-size: 14px;

    line-height: 1.65;

}

.salary-details strong {

    color: #1a3540;

}

.salary-highlight {

    color: #f05b45;

    font-weight: 900;

}

.salary-amount {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    margin-top: 17px;

    padding-top: 15px;

    border-top: 1px solid #e3eef2;

}

.salary-amount span {

    color: #75858c;

    font-size: 13px;

}

.salary-amount strong {

    color: #0788a7;

    font-size: 24px;

    white-space: nowrap;

}

/* Bottom Note */

.salary-plan-note {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-top: 18px;

    padding: 16px;

    border-radius: 16px;

    background: #073f55;

    color: #ffffff;

}

.salary-plan-note i {

    margin-top: 3px;

    color: #57def0;

}

.salary-plan-note p {

    margin: 0;

    color: rgba(255, 255, 255, 0.86);

    font-size: 13px;

    line-height: 1.6;

}

/* Dark Theme */

body.dark-theme .marathon-salary-plan {

    background: #101c22;

}

body.dark-theme .salary-introduction,

body.dark-theme .salary-position-card {

    border-color: #29414b;

    background: #17272e;

}

body.dark-theme .salary-introduction h2,

body.dark-theme .salary-position-header h3 {

    color: #f2fbff;

}

body.dark-theme .salary-introduction > p,

body.dark-theme .salary-details p {

    color: #b7c8cf;

}

body.dark-theme .salary-introduction strong,

body.dark-theme .salary-details strong {

    color: #e9faff;

}

body.dark-theme .salary-policy-item,

body.dark-theme .salary-team-range {

    background: #20373f;

}

body.dark-theme .salary-policy-item p {

    color: #c4d5dc;

}

body.dark-theme .salary-amount {

    border-color: #29414b;

}

/* Mobile */

@media (max-width: 600px) {

    .marathon-salary-plan {

        padding: 10px;

        border-radius: 17px;

    }

    .salary-hero {

        min-height: 225px;

        padding: 19px;

        border-radius: 17px;

    }

    .salary-introduction,

    .salary-position-card {

        padding: 17px;

        border-radius: 17px;

    }

    .salary-introduction h2 {

        font-size: 21px;

    }

    .salary-position-header h3 {

        font-size: 18px;

    }

    .salary-amount strong {

        font-size: 21px;

    }

}


/* =========================================================
   MARATHON HOME — COMPACT RESPONSIVE LAYOUT

   Paste this complete block at the END of style.css.
   HTML/JavaScript changes are not required.
   These rules only affect Quick Access, Cumulative Income,
   Commission and Salary Plan areas.
========================================================= */

/* ---------- Quick Access: light compact adjustment ---------- */

.quick-actions {
    width: min(calc(100% - 8px), 465px);
    margin: 37px auto 0;
    gap: 8px;
}

.quick-action-item {
    min-height: 76px;
    padding: 39px 3px 10px;
    border-radius: 14px;
}

.quick-action-icon {
    top: -24px;
    width: 52px;
    height: 52px;
    border-width: 3px;
    font-size: 20px;
}

.quick-action-name {
    font-size: 11px;
}

/* ---------- Cumulative Income: slightly shorter card ---------- */

.income-card {
    width: min(calc(100% - 8px), 465px);
    margin: 18px auto 0;
    padding: 20px 21px;
    border-radius: 19px;
}

.income-card-top {
    gap: 12px;
}

.income-label {
    font-size: 15px;
    line-height: 1.25;
}

.total-income {
    margin-top: 3px;
    font-size: 31px;
}

.income-image {
    width: 72px;
    height: 68px;
    border-radius: 18px;
    font-size: 34px;
}

.income-details {
    gap: 14px;
    margin-top: 23px;
}

.income-detail p {
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.3;
}

.income-detail strong {
    font-size: 20px;
}

/* ---------- Shared plan spacing and compact tabs ---------- */

.plan-section {
    margin-top: clamp(18px, 4vw, 24px);
}

.plan-tabs {
    width: min(100%, 430px);
    margin: 0 auto 13px;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.06);
}

.plan-tab {
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 16px;
    line-height: 1.2;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.plan-tab.active {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.plan-tab.active::after {
    bottom: 3px;
    width: 30px;
    height: 3px;
}

/* ---------- Commission: narrower and shorter ---------- */

.marathon-commission-card {
    width: min(calc(100% - 14px), 455px);
    margin-inline: auto;
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.09);
}

.commission-network-graphic {
    width: min(100%, 380px);
    margin-inline: auto;
    border: 1px solid #e5effd;
    border-radius: 15px;
}

.commission-legend {
    width: min(100%, 380px);
    margin: 14px auto 0;
    gap: 7px;
}

.legend-item {
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.legend-dot {
    flex-basis: 13px;
    width: 13px;
    height: 13px;
}

.commission-section-title {
    margin: 20px 0 12px;
    font-size: 20px;
    line-height: 1.25;
}

.commission-introduction-graphic {
    width: min(100%, 350px);
    margin-inline: auto;
    border: 1px solid #e5edf8;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.05);
}

/* ---------- Salary: compact wrapper and hero ---------- */

.marathon-salary-plan {
    width: min(calc(100% - 14px), 455px);
    margin-inline: auto;
    padding: 10px;
    border-radius: 18px;
}

.salary-hero {
    min-height: 205px;
    padding: 19px;
    border-radius: 17px;
    box-shadow: 0 10px 24px rgba(4, 67, 91, 0.18);
}

.salary-hero::after {
    top: -75px;
    right: -70px;
    width: 185px;
    height: 185px;
}

.salary-hero-label {
    gap: 7px;
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 11px;
}

.salary-hero h2 {
    max-width: 390px;
    font-size: clamp(25px, 5.4vw, 34px);
    line-height: 1.08;
}

.salary-hero p {
    max-width: 410px;
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.45;
}

/* ---------- Salary introduction ---------- */

.salary-introduction {
    margin-top: 12px;
    padding: 17px;
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(8, 82, 108, 0.06);
}

.salary-small-title {
    font-size: 11px;
    letter-spacing: 0.8px;
}

.salary-introduction h2 {
    margin: 6px 0 10px;
    font-size: 21px;
    line-height: 1.2;
}

.salary-introduction > p {
    margin: 7px 0;
    font-size: 14px;
    line-height: 1.5;
}

.salary-policy-list {
    gap: 8px;
    margin-top: 14px;
}

.salary-policy-item {
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
}

.salary-policy-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
}

.salary-policy-item p {
    font-size: 13px;
    line-height: 1.4;
}

/* ---------- Salary position cards ---------- */

.salary-positions {
    gap: 12px;
    margin-top: 13px;
}

.salary-position-card {
    padding: 15px 16px 14px 18px;
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(8, 75, 98, 0.07);
}

.salary-position-card::before {
    width: 4px;
}

.salary-position-header {
    gap: 11px;
}

.salary-position-number {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    font-size: 15px;
}

.salary-position-type {
    font-size: 10px;
    letter-spacing: 0.7px;
}

.salary-position-header h3 {
    margin-top: 3px;
    font-size: 18px;
    line-height: 1.2;
}

.salary-team-range {
    max-width: 100%;
    margin-top: 12px;
    padding: 7px 10px;
    gap: 7px;
    border-radius: 24px;
    font-size: 12px;
    line-height: 1.35;
}

.salary-details {
    margin-top: 10px;
}

.salary-details p {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.5;
}

.salary-amount {
    gap: 10px;
    margin-top: 11px;
    padding-top: 11px;
}

.salary-amount span {
    font-size: 12px;
    line-height: 1.3;
}

.salary-amount strong {
    font-size: 21px;
}

.salary-plan-note {
    gap: 9px;
    margin-top: 13px;
    padding: 12px;
    border-radius: 13px;
}

.salary-plan-note p {
    font-size: 12px;
    line-height: 1.45;
}

/* ---------- Dark theme refinements ---------- */

html:is(.dark-theme, [data-marathon-theme="dark"]) .plan-tabs,
body.dark-theme .plan-tabs {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.72);
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .plan-tab.active,
body.dark-theme .plan-tab.active {
    background: #1e293b;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
    .commission-section-title,
body.dark-theme .commission-section-title {
    color: #f8fafc;
}

/* ---------- Mobile: balanced width and spacing ---------- */

@media (max-width: 440px) {
    .quick-actions {
        width: calc(100% - 8px);
        margin-top: 35px;
        gap: 6px;
    }

    .quick-action-item {
        min-height: 72px;
        padding-top: 37px;
        padding-bottom: 9px;
    }

    .quick-action-icon {
        top: -22px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .quick-action-name {
        font-size: 10px;
    }

    .income-card {
        width: calc(100% - 12px);
        margin-top: 18px;
        padding: 17px 16px;
        border-radius: 17px;
    }

    .income-label {
        font-size: 14px;
    }

    .total-income {
        font-size: 28px;
    }

    .income-image {
        width: 64px;
        height: 60px;
        border-radius: 16px;
        font-size: 30px;
    }

    .income-details {
        gap: 11px;
        margin-top: 19px;
    }

    .income-detail p {
        font-size: 12px;
    }

    .income-detail strong {
        font-size: 18px;
    }

    .plan-section {
        margin-top: 16px;
    }

    .plan-tabs {
        width: calc(100% - 10px);
        margin-bottom: 10px;
    }

    .plan-tab {
        min-height: 39px;
        padding: 8px 9px;
        font-size: 14px;
    }

    .marathon-commission-card,
    .marathon-salary-plan {
        width: calc(100% - 20px);
    }

    .marathon-commission-card {
        padding: 11px;
        border-radius: 15px;
    }

    .commission-network-graphic {
        width: min(100%, 320px);
        border-radius: 12px;
    }

    .commission-legend {
        width: min(100%, 320px);
        margin-top: 11px;
        gap: 4px;
    }

    .legend-item {
        gap: 4px;
        font-size: 11px;
    }

    .legend-dot {
        flex-basis: 10px;
        width: 10px;
        height: 10px;
    }

    .commission-section-title {
        margin: 16px 0 10px;
        font-size: 17px;
    }

    .commission-introduction-graphic {
        width: min(100%, 300px);
        border-radius: 10px;
    }

    .marathon-salary-plan {
        padding: 8px;
        border-radius: 15px;
    }

    .salary-hero {
        min-height: 165px;
        padding: 15px;
        border-radius: 14px;
    }

    .salary-hero::after {
        top: -65px;
        right: -65px;
        width: 155px;
        height: 155px;
    }

    .salary-hero-label {
        margin-bottom: 8px;
        padding: 5px 9px;
        font-size: 9px;
        letter-spacing: 0.6px;
    }

    .salary-hero h2 {
        font-size: 23px;
    }

    .salary-hero p {
        margin-top: 7px;
        font-size: 12px;
        line-height: 1.4;
    }

    .salary-introduction {
        margin-top: 9px;
        padding: 13px;
        border-radius: 14px;
    }

    .salary-small-title {
        font-size: 9px;
    }

    .salary-introduction h2 {
        margin: 5px 0 8px;
        font-size: 18px;
    }

    .salary-introduction > p {
        margin: 5px 0;
        font-size: 12px;
        line-height: 1.45;
    }

    .salary-policy-list {
        gap: 6px;
        margin-top: 10px;
    }

    .salary-policy-item {
        gap: 8px;
        padding: 8px;
    }

    .salary-policy-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 12px;
    }

    .salary-policy-item p {
        font-size: 11px;
        line-height: 1.35;
    }

    .salary-positions {
        gap: 9px;
        margin-top: 10px;
    }

    .salary-position-card {
        padding: 12px 12px 11px 15px;
        border-radius: 14px;
    }

    .salary-position-header {
        gap: 9px;
    }

    .salary-position-number {
        width: 39px;
        height: 39px;
        border-radius: 11px;
        font-size: 13px;
    }

    .salary-position-type {
        font-size: 8px;
        letter-spacing: 0.55px;
    }

    .salary-position-header h3 {
        font-size: 16px;
    }

    .salary-team-range {
        margin-top: 9px;
        padding: 6px 8px;
        font-size: 10px;
    }

    .salary-details {
        margin-top: 7px;
    }

    .salary-details p {
        margin: 5px 0;
        font-size: 11px;
        line-height: 1.4;
    }

    .salary-amount {
        margin-top: 8px;
        padding-top: 8px;
    }

    .salary-amount span {
        max-width: 145px;
        font-size: 10px;
    }

    .salary-amount strong {
        font-size: 18px;
    }

    .salary-plan-note {
        margin-top: 10px;
        padding: 10px;
    }

    .salary-plan-note p {
        font-size: 10px;
        line-height: 1.4;
    }
}

/* ---------- Very small phones ---------- */

@media (max-width: 350px) {
    .marathon-commission-card,
    .marathon-salary-plan {
        width: calc(100% - 10px);
    }

    .legend-item {
        font-size: 9px;
    }

    .commission-introduction-graphic {
        width: min(100%, 278px);
    }

    .salary-hero h2 {
        font-size: 21px;
    }

    .salary-position-header h3 {
        font-size: 15px;
    }

    .salary-team-range {
        white-space: normal;
    }
}

/* ---------- Keyboard accessibility ---------- */

.plan-tab:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .plan-tab {
        transition: none;
    }
}

/* =====================================================
   HOME HEADER — SINGLE CENTER LOGO + MATCHED CONTAINER
===================================================== */

.home-header {
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    width: auto;
    min-height: 84px;
    margin: 14px 18px 0;
    padding: 16px;
    border-radius: 16px;
    overflow: hidden;
}

.home-header .header-space {
    display: block;
}

.home-header .brand-name {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    text-align: center;
}

.home-header .language-button {
    justify-self: end;
}

/* Mobile alignment matches .home-main side padding */
@media (max-width: 420px) {
    .home-header {
        min-height: 74px;
        margin: 12px 13px 0;
        padding: 12px 13px;
        border-radius: 14px;
    }

    .home-header .brand-name {
        font-size: 20px;
    }
}

.hero-section {
    margin-top: 12px;
}

