body.frontend-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(56, 127, 255, 0.2), transparent 35%),
        linear-gradient(180deg, #f3f8ff 0%, #e7f0ff 100%);
    color: #1d2a33;
    font-family: "Segoe UI", "PingFang SC", sans-serif;
}

.frontend-body .container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 110px !important;
}

.page-content {
    flex: 1 1 auto;
}

.brand-card,
.task-card,
.auth-card,
.wallet-card,
.empty-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(20, 44, 72, 0.08);
}

.brand-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #1450d2 0%, #2167f3 55%, #3b86ff 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 34px rgba(33, 88, 210, 0.24);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.brand-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #dce9ff 100%);
    color: #1c5be8;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 24px rgba(9, 38, 102, 0.18);
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-subtitle,
.task-meta {
    font-size: 0.9rem;
    color: rgba(29, 42, 51, 0.66);
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.78);
}

.brand-action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(180deg, #0f3fae 0%, #1e56d6 100%) !important;
    box-shadow:
        0 12px 24px rgba(7, 35, 96, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.brand-action-btn:hover,
.brand-action-btn:focus {
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow:
        0 16px 28px rgba(7, 35, 96, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-action-btn:active {
    transform: translateY(0);
}

.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.filter-bar a {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #385064;
    background: rgba(255, 255, 255, 0.88);
}

.filter-bar a.active {
    background: #183848;
    color: #fff;
}

.task-title,
.auth-title,
.section-title,
.stat-value,
.invite-code,
.wallet-amount {
    font-weight: 700;
}

.price-tag {
    color: #0b8b5a;
    font-weight: 700;
    font-size: 1.2rem;
}

.desc-box {
    line-height: 1.7;
    color: #425466;
}

.proof-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d9e2ea;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 24px);
    max-width: 516px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(15, 34, 71, 0.94);
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(15, 34, 71, 0.22);
    backdrop-filter: blur(10px);
}

.bottom-nav a {
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
    text-align: center;
    padding: 6px 0;
}

.bottom-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

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

.stat-item,
.list-card a {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(20, 44, 72, 0.08);
}

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

.list-card a {
    text-decoration: none;
    color: #1d2a33;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
}

.wallet-card {
    background: linear-gradient(135deg, #183848 0%, #285c7b 100%);
    color: #fff;
}

.wallet-card .task-meta {
    color: rgba(255, 255, 255, 0.72);
}

.wallet-amount {
    font-size: 2rem;
}

.invite-code {
    font-size: 2rem;
    color: #0b8b5a;
}

.preview-grid,
.proof-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.log-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f6;
}

@media (max-width: 576px) {
    .brand-card {
        padding: 16px;
    }

    .brand-logo-mark {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 16px;
        font-size: 0.78rem;
    }

    .brand-title {
        font-size: 1.12rem;
    }

    .brand-subtitle {
        font-size: 0.82rem;
    }

    .brand-action-btn {
        min-width: 100px;
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .frontend-body .container {
        padding-bottom: 104px !important;
    }

    .bottom-nav {
        left: 50%;
        bottom: 10px;
        width: calc(100% - 20px);
        border-radius: 16px;
    }
}
