/* ==========================================================================
   tasks.css - Стили для страницы заданий в стиле HULI
   Полная адаптация оформления из huli.html с префиксом trumpamole__tasks
   ========================================================================== */

/* ===== FULL-WIDTH TOP HERO ===== */
.trumpamole__tasks-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-shadow: var(--shadow, 0 18px 42px rgba(0,0,0,.38));
    background: rgba(0,0,0,.18);
    margin-bottom: 0;
}

.trumpamole__tasks-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../tasks/bg_page.webp') center/cover no-repeat;
    filter: blur(1.2px) saturate(1.05) contrast(1.05);
    transform: scale(1.08);
    opacity: .95;
}

.trumpamole__tasks-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,.10) 0%,
        rgba(36,26,26,.35) 40%,
        rgba(36,26,26,.86) 100%);
    pointer-events: none;
}

.trumpamole__tasks-hero-inner {
    position: relative;
    z-index: 2;
    padding: calc(12px + var(--safe-top, 0px)) 14px 12px 14px;
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    align-items: center;
    min-height: 100px;
    width: min(440px, 100%);
    margin: 0 auto;
}

.trumpamole__tasks-title-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.trumpamole__tasks-page-title {
    font-family: var(--font-heading, "Unbounded", "Manrope", system-ui);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: rgba(255,248,230,.96);
    margin: 0;
}

.trumpamole__tasks-stats-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: nowrap;
}

.trumpamole__tasks-chip {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 18px rgba(0,0,0,.22);
    border: 1px solid rgba(255,232,170,.10);
    min-width: 0;
}

.trumpamole__tasks-chip-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.trumpamole__tasks-chip-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,.30));
    opacity: .95;
    flex: 0 0 auto;
}

.trumpamole__tasks-chip-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.trumpamole__tasks-chip-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .25px;
    color: rgba(255,246,230,.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trumpamole__tasks-chip-value {
    font-size: 13px;
    font-weight: 900;
    color: rgba(255,248,230,.98);
    letter-spacing: .2px;
    white-space: nowrap;
}

.trumpamole__tasks-page-sub {
    font-size: 12px;
    line-height: 1.25;
    color: rgba(255,246,230,.80);
    font-weight: 800;
    text-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.trumpamole__tasks-top-icon {
    width: 212px;
    height: 176px;
    display: grid;
    place-items: center;
    overflow: visible;
}

.trumpamole__tasks-top-icon img {
    width: 100%;
    height: 100%;
    margin-right: 90px;
    object-fit: contain;
    filter: drop-shadow(0 16px 26px rgba(0,0,0,.40));
    transform: translateY(2px);
}

/* ===== MAIN PANEL ===== */
.trumpamole__tasks-main-panel {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    padding-bottom: calc(18px + var(--safe-bottom, 0px));
    border-top: 1px solid rgba(255, 232, 170, .10);
    overflow: hidden;
    box-shadow: 0px -9px 13px -2px rgb(31 22 22);
}

.trumpamole__tasks-main-inner {
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SECTION HEADER ===== */
.trumpamole__tasks-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2px 2px 6px;
    margin: 0;
    margin-top: 10px;
}

.trumpamole__tasks-section-header:first-child {
    margin-top: 0;
}

.trumpamole__tasks-section-header h2 {
    margin: 0;
    font-family: var(--font-heading, "Unbounded", "Manrope", system-ui);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: rgba(255,248,230,.96);
}

.trumpamole__tasks-section-header .trumpamole__tasks-hint {
    font-size: 12px;
    color: rgba(255,246,230,.72);
    font-weight: 800;
}

/* ===== INFO CARD ===== */
.trumpamole__tasks-info-card {
    position: relative;
    border-radius: var(--radius, 14px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 18px 42px rgba(0,0,0,.38));
    background: rgba(0,0,0,.18);
    margin: 6px 0 10px;
    border-bottom: 1px solid rgba(255,232,170,.08);
}

.trumpamole__tasks-info-inner {
    position: relative;
    z-index: 2;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trumpamole__tasks-info-text {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255,246,230,.82);
}

.trumpamole__tasks-accent {
    font-weight: 900;
    white-space: nowrap;
}

.trumpamole__tasks-accent.gold {
    color: rgba(245,214,90,.98);
}

.trumpamole__tasks-accent.cream {
    color: rgba(255,246,230,.98);
}

.trumpamole__tasks-accent.red {
    color: rgba(255,170,150,.98);
}

/* ===== PREMIUM BUTTON ===== */
.trumpamole__tasks-btn-par {
    position: relative;
    height: 56px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-width: 162px;
    flex: 0 0 auto;
}

.trumpamole__tasks-btn-par__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.trumpamole__tasks-btn-par__text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: rgba(18, 14, 8, 0.92);
    font: 800 13px/1 var(--font-heading, "Unbounded", "Manrope", ui-sans-serif, system-ui);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32);
    padding: 0 14px;
    text-align: center;
    white-space: nowrap;
}

.trumpamole__tasks-btn-par.fire {
    filter: drop-shadow(0 26px 60px rgba(0,0,0,.64)) drop-shadow(0 0 18px var(--glow, rgba(245,214,90,.18)));
    transition: transform .12s ease, filter .16s ease, opacity .18s ease;
}

.trumpamole__tasks-btn-par.fire:active {
    transform: translateY(1px);
}

.trumpamole__tasks-btn-par[disabled] {
    cursor: default;
    opacity: .52;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,.45));
}

/* ===== CAROUSEL ===== */
.trumpamole__tasks-carousel {
    position: relative;
    margin-top: 6px;
    padding: 2px 0 2px;
}

.trumpamole__tasks-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px 10px;
}

.trumpamole__tasks-track::-webkit-scrollbar {
    display: none;
}

.trumpamole__tasks-fade-l,
.trumpamole__tasks-fade-r {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    pointer-events: none;
    z-index: 5;
}

.trumpamole__tasks-fade-l {
    left: 0;
    background: linear-gradient(90deg, rgba(36,26,26,1) 0%, rgba(36,26,26,0) 100%);
    border-radius: 14px 0 0 14px;
}

.trumpamole__tasks-fade-r {
    right: 0;
    background: linear-gradient(270deg, rgba(36,26,26,1) 0%, rgba(36,26,26,0) 100%);
    border-radius: 0 14px 14px 0;
}

/* ===== CARD MINI ===== */
.trumpamole__tasks-card-mini {
    scroll-snap-align: center;
    flex: 0 0 142px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 14px 26px rgba(0,0,0,.28);
    border: 1px solid rgba(255,232,170,.08);
    background: rgba(0,0,0,.22);
    min-height: 126px;
}

.trumpamole__tasks-card-mini::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: scale(1.05);
    opacity: .96;
    filter: saturate(1.05) contrast(1.05);
}

.trumpamole__tasks-card-mini::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,.04) 0%,
        rgba(0,0,0,.10) 40%,
        rgba(36,26,26,.88) 100%);
    pointer-events: none;
}

.trumpamole__tasks-card-mini-inner {
    position: relative;
    z-index: 2;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.trumpamole__tasks-mini-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.trumpamole__tasks-mini-day {
    font-weight: 800;
    letter-spacing: .25px;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(255,248,230,.96);
}

.trumpamole__tasks-mini-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
    opacity: .95;
    margin-top: -4px;
}

.trumpamole__tasks-mini-reward {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 8px;
}

.trumpamole__tasks-mini-reward-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.trumpamole__tasks-mini-reward-left img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.30));
    opacity: .95;
    flex: 0 0 auto;
}

.trumpamole__tasks-mini-reward-left span {
    font-weight: 900;
    font-size: 12px;
    color: rgba(255,248,230,.98);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trumpamole__tasks-mini-btn {
    border: 0;
    border-radius: 6px;
    padding: 8px 6px;
    font-family: var(--font-heading, "Unbounded", "Manrope", system-ui);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .25px;
    background: radial-gradient(60% 55% at 50% 18%, #f1dc7c 0%, #ebcf6e 40%, #efd47d 75%, #dda15a 100%), 
                linear-gradient(180deg, #f5e49a 0%, #dfa65f 100%);
    color: rgba(18, 14, 8, .92);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .22);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, opacity .18s ease;
    white-space: nowrap;
}

.trumpamole__tasks-mini-btn:active {
    transform: translateY(1px) scale(.99);
}

.trumpamole__tasks-mini-btn[disabled] {
    opacity: .52;
    cursor: default;
}

.trumpamole__tasks-card-mini.is-dim {
    opacity: .55;
    filter: saturate(.88);
}

/* ===== TASK LIST ROWS ===== */
.trumpamole__tasks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 6px;
}

.trumpamole__tasks-row {
    border-radius: 12px;
    background: var(--rowA, #2a1f1f);
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    border: 1px solid rgba(255,232,170,.08);
}

.trumpamole__tasks-row.alt {
    background: var(--rowB, #241a1a);
}

.trumpamole__tasks-row.done {
    background: #2a211f;
    box-shadow: 0 14px 26px rgba(0,0,0,.28);
}

.trumpamole__tasks-left-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
}

#socialList .trumpamole__tasks-left-icon img {
    width: 48px;
    height: 48px;
}

.trumpamole__tasks-left-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.30));
    opacity: .95;
}

.trumpamole__tasks-mid {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trumpamole__tasks-name {
    font-weight: 900;
    font-size: 13px;
    color: rgba(255,248,230,.98);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trumpamole__tasks-reward {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: rgba(255,246,230,.84);
    font-weight: 800;
    min-width: 0;
}

.trumpamole__tasks-reward img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.30));
    opacity: .95;
    flex: 0 0 auto;
}

.trumpamole__tasks-reward span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trumpamole__tasks-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 108px;
}

.trumpamole__tasks-progress-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.trumpamole__tasks-p-text {
    font-family: var(--font-heading, "Unbounded", "Manrope", system-ui);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    color: rgba(255,246,230,.78);
    white-space: nowrap;
}

.trumpamole__tasks-small-btn {
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .45px;
    text-transform: uppercase;
    color: rgb(62 42 44);
    border: 1px solid rgb(62 42 44);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    background: radial-gradient(60% 55% at 50% 18%, #FFF6E6 0%, #F2E7D6 40%, #D7C7B4 75%, #bca896 100%), 
                linear-gradient(180deg, #F2E7D6 0%, #8E7863 100%);
    text-overflow: ellipsis;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, opacity .18s ease;
}

.trumpamole__tasks-small-btn:active {
    transform: translateY(1px);
}

.trumpamole__tasks-small-btn[disabled] {
    opacity: .52;
    cursor: default;
}

.trumpamole__tasks-check-badge {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,232,170,.10);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 18px rgba(0,0,0,.18);
}

.trumpamole__tasks-check-badge svg {
    width: 18px;
    height: 18px;
    opacity: .92;
    color: rgba(245,214,90,.95);
}

/* ===== IMPORTANT WRAP ===== */
.trumpamole__tasks-important-wrap {
    border-radius: var(--radius, 14px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 18px 42px rgba(0,0,0,.38));
    background: rgba(0,0,0,.18);
    position: relative;
    margin-top: 6px;
}

.trumpamole__tasks-important-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,.08) 0%,
        rgba(0,0,0,.16) 30%,
        rgba(36,26,26,.92) 100%);
    pointer-events: none;
}

.trumpamole__tasks-important-inner {
    position: relative;
    z-index: 2;
    padding: 12px;
}

.trumpamole__tasks-important-inner .trumpamole__tasks-info-text {
    margin-bottom: 10px;
}

.trumpamole__tasks-important-inner .trumpamole__tasks-row {
    padding: 10px 0px;
    border: none;
    border-radius: 0px;
    background: transparent;
    box-shadow: none;
}

/* ===== DAILY BONUSES SECTION ===== */
.trumpamole__tasks-daily-section {
    margin-bottom: 6px;
}

/* ===== SOCIAL TASKS SECTION ===== */
.trumpamole__tasks-social-section {
    margin-top: 6px;
}

/* ===== ADS REWARDS SECTION ===== */
.trumpamole__tasks-ads-section {
    margin-top: 6px;
}

/* ===== GAME TASKS SECTION ===== */
.trumpamole__tasks-game-section {
    margin-top: 6px;
}

/* ===== IMPORTANT TASKS SECTION ===== */
.trumpamole__tasks-important-section {
    margin-top: 6px;
}

/* ===== LOADING & ERROR STATES ===== */
.trumpamole__tasks-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 20px;
    color: var(--muted, rgba(255,246,230,.74));
}

.trumpamole__tasks-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--gold-3, #e9b84e);
    border-radius: 50%;
    animation: trumpamole__spin 1s linear infinite;
}

.trumpamole__tasks-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 20px;
    text-align: center;
    color: var(--muted, rgba(255,246,230,.74));
}

.trumpamole__tasks-error-icon {
    font-size: 48px;
    opacity: 0.5;
}

.trumpamole__tasks-no-tasks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--muted, rgba(255,246,230,.74));
}

.trumpamole__tasks-no-tasks-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.trumpamole__tasks-no-tasks-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--text, #FFF6E6);
    margin-bottom: 8px;
}

.trumpamole__tasks-no-tasks-desc {
    font-size: 13px;
    line-height: 1.4;
    max-width: 300px;
    color: var(--muted, rgba(255,246,230,.74));
}

/* ===== ADAPTIVE ===== */
@media (max-width: 360px) {
    .trumpamole__tasks-hero-inner {
        grid-template-columns: 1fr 108px;
    }
    
    .trumpamole__tasks-top-icon img {
        margin-right: 70px;
    }
    
    .trumpamole__tasks-card-mini {
        flex-basis: 136px;
    }
    
    .trumpamole__tasks-btn-par {
        min-width: 130px;
    }
    
    .trumpamole__tasks-right {
        min-width: 102px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes trumpamole__spin {
    to { transform: rotate(360deg); }
}

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

.trumpamole__tasks-fade-in {
    animation: trumpamole__fadeIn 0.3s ease-out forwards;
}