:root {
    --veewin-bg: var(--a-bg, #f5f7fb);
    --veewin-panel: var(--a-panel, #ffffff);
    --veewin-raised: var(--a-raised, #f0f3f7);
    --veewin-text: var(--a-text, #172033);
    --veewin-muted: var(--a-muted, #667085);
    --veewin-line: var(--a-line, #dce2ea);
    --veewin-accent: var(--a-accent, #16864b);
    --veewin-glow: var(--a-glow, rgba(22, 134, 75, 0.08));
}

.veewin-dashboard-section,
.veewin-engagement,
.veewin-earn-hero {
    margin-bottom: 24px;
}

/* Dashboard highlights */
.veewin-dashboard-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.veewin-dashboard-highlights__item {
    display: flex;
    min-width: 0;
}

.veewin-dashboard-highlights__item > .kt-portlet {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin-bottom: 0;
}

.veewin-dashboard-highlights__item > .kt-portlet > .kt-portlet__body {
    flex: 1;
}

.veewin-dashboard-highlights__item .kt-portlet__head {
    min-height: 62px;
}

.veewin-dashboard-highlights__item .kt-portlet__head-title,
.veewin-dashboard-highlights__item .kt-widget19__title {
    font-size: 1.05rem;
    line-height: 1.4;
}

.veewin-dashboard-highlights__item .widget-new-feature {
    min-height: 132px;
}

.veewin-dashboard-highlights__item--payouts .kt-widget4 {
    max-height: 230px;
    overflow-y: auto;
    padding-right: 6px;
}

@media (max-width: 1199px) {
    .veewin-dashboard-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .veewin-dashboard-highlights {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.veewin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.veewin-section-heading h2,
.veewin-earn-hero h2 {
    margin: 3px 0 0;
    color: var(--veewin-text);
    font-size: 22px;
    font-weight: 700;
}

.veewin-section-heading > span,
.veewin-section-heading > a,
.veewin-earn-hero p {
    color: var(--veewin-muted);
}

.veewin-section-heading > a:not(.btn) {
    color: var(--veewin-accent);
    font-weight: 600;
}

.veewin-eyebrow {
    color: var(--veewin-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.veewin-progress-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 14px;
}

.veewin-progress-card {
    display: flex;
    min-height: 144px;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border: 1px solid var(--veewin-line);
    border-radius: 15px;
    background: var(--veewin-panel);
    color: var(--veewin-text);
}

.veewin-progress-card strong {
    margin: 5px 0;
    color: var(--veewin-text);
    font-size: 24px;
}

.veewin-progress-card small,
.veewin-progress-card span,
.veewin-progress-card__label {
    color: var(--veewin-muted);
}

.veewin-progress-card__icon {
    margin-bottom: 5px;
    font-size: 22px;
}

.veewin-progress-bar {
    height: 8px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--veewin-raised);
}

.veewin-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--veewin-accent);
}

.veewin-offer-grid,
.veewin-wall-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.veewin-offer-card,
.veewin-wall-card {
    overflow: hidden;
    border: 1px solid var(--veewin-line);
    border-radius: 14px;
    background: var(--veewin-panel);
    color: var(--veewin-text);
    transition: border-color 160ms ease, transform 160ms ease;
}

.veewin-wall-card {
    display: flex;
    min-height: 170px;
    padding: 18px;
    text-decoration: none;
}

.veewin-offer-card:hover,
.veewin-wall-card:hover {
    border-color: var(--veewin-accent);
    color: var(--veewin-text);
    text-decoration: none;
    transform: translateY(-2px);
}

.veewin-offer-card__media {
    display: flex;
    height: 112px;
    align-items: center;
    justify-content: center;
    background: var(--veewin-raised);
}

.veewin-offer-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.veewin-offer-card__media > span {
    color: var(--veewin-accent);
    font-size: 42px;
    font-weight: 800;
}

.veewin-offer-card__body {
    padding: 16px;
}

.veewin-offer-card h3 {
    margin: 10px 0 5px;
    color: var(--veewin-text);
    font-size: 16px;
}

.veewin-offer-card p {
    min-height: 40px;
    margin-bottom: 14px;
    color: var(--veewin-muted);
    font-size: 13px;
}

.veewin-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.veewin-chip-row span {
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--veewin-glow);
    color: var(--veewin-accent);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.veewin-payout-button {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--veewin-accent);
    border-radius: 9px;
    background: var(--veewin-glow);
    color: var(--veewin-accent);
    font-weight: 700;
    text-align: center;
}

.veewin-payout-button:hover {
    background: var(--veewin-accent);
    color: var(--veewin-bg);
    text-decoration: none;
}

.veewin-earn-hero {
    padding: 26px;
    border: 1px solid var(--veewin-line);
    border-radius: 16px;
    background: radial-gradient(circle at 90% 0, var(--veewin-glow), transparent 50%), var(--veewin-panel);
}

.veewin-earn-hero p {
    max-width: 650px;
    margin: 8px 0 0;
}

.veewin-wall-card__image {
    display: flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: var(--veewin-raised);
}

.veewin-wall-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.veewin-wall-card__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding-left: 14px;
}

.veewin-wall-card__content strong {
    margin: 5px 0;
    color: var(--veewin-text);
    font-size: 16px;
}

.veewin-wall-card__content small {
    flex: 1;
    color: var(--veewin-muted);
    line-height: 1.45;
}

.veewin-wall-card__rating,
.veewin-wall-card__action {
    color: var(--veewin-accent);
    font-size: 12px;
    font-weight: 700;
}

.veewin-wall-card__action {
    margin-top: 12px;
}

.veewin-wall-viewer .kt-portlet__head-icon img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: contain;
}

.veewin-wall-viewer iframe {
    display: block;
    width: 100%;
    min-height: 75vh;
    border: 0;
    background: #ffffff;
}

.veewin-empty-state {
    padding: 50px 20px;
    border: 1px dashed var(--veewin-line);
    border-radius: 14px;
    color: var(--veewin-muted);
    text-align: center;
}

.veewin-mobile-nav {
    display: none;
}

@media (max-width: 1199px) {
    .veewin-offer-grid,
    .veewin-wall-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 78px;
    }

    .veewin-progress-grid,
    .veewin-offer-grid,
    .veewin-wall-grid {
        grid-template-columns: 1fr;
    }

    .veewin-section-heading {
        align-items: flex-end;
    }

    .veewin-progress-card {
        min-height: 120px;
    }

    .veewin-mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        min-height: 68px;
        padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        border-top: 1px solid var(--veewin-line);
        background: var(--veewin-panel);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
    }

    .veewin-mobile-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        color: var(--veewin-muted);
        font-size: 10px;
        text-decoration: none;
    }

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

    .veewin-mobile-nav a[aria-current="page"] {
        color: var(--veewin-accent);
    }

    .veewin-mobile-nav__earn i {
        width: 46px;
        height: 46px;
        margin-top: -24px;
        border: 4px solid var(--veewin-bg);
        border-radius: 50%;
        background: var(--veewin-accent);
        color: var(--veewin-bg);
        line-height: 38px;
        text-align: center;
        box-shadow: 0 6px 18px var(--veewin-glow);
    }

    .aura-dashboard-toggle {
        bottom: 88px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .veewin-offer-card,
    .veewin-wall-card {
        transition: none;
    }
}
