/* HomePanel uses global hero styles (TradingHUD.scss) */
.home-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    pointer-events: all;
}

.home-dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 4px;
    gap: 14px;
}

.home-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    background-color: #121214;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 18px 18px;
    margin-bottom: 0px;
}

.home-section-title {
    font-size: 17px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 14px;
}

.home-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: stretch;
}

.home-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.home-stats-row:last-child {
    margin-bottom: 0px;
}

.home-section-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 14px;
}

.home-section-half {
    flex: 1 1 460px;
    min-width: 0px;
}

.home-top-section-row {
    align-items: stretch;
}

.home-section-main {
    flex: 2 1 700px;
    min-width: 0px;
}

.home-section-side {
    flex: 1 1 360px;
    min-width: 280px;
}

.home-stats-row-compact .home-stat-card {
    flex: 1 1 170px;
    min-width: 170px;
}

.infra-stats-section .home-stat-card {
    min-height: 102px;
}

.activity-row-top .home-stat-card {
    flex: 1 1 100%;
    min-width: 100%;
}

.home-stat-card {
    flex: 1 1 210px;
    min-width: 190px;
    min-height: 98px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: #18181b;
    border-radius: 12px;
    border: 1px solid #27272a;
    padding: 12px 13px;
}

.hs-label {
    font-size: 12px;
    font-weight:750;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hs-value {
    font-size: 17px;
    font-weight: 800;
    color: #f9fafb;
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.hs-market-value {
    align-items: center;
    gap: 10px;
}

.hs-market-price {
    display: flex;
    align-items: center;
}

.hs-market-change {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hs-market-change .ui-icon {
    width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 12px;
    padding: 0;
}

.hs-good {
    color: #10b981;
}

.hs-bad {
    color: #ef4444;
}

.hs-hint {
    font-size: 11px;
    color: #9ca3af;
}

.hs-rank-main {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ui-icon.home-rank-icon {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 18px;
    padding: 0;
}

.daily-reward-section {
    background-color: #121214;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 18px 18px;
    position: relative;
    overflow: hidden;
}

.daily-reward-section::before {
    content: "";
    display: none;
}

.daily-hero {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: none;
    border-radius: 0px;
    padding: 0px;
    margin-bottom: 14px;
    box-shadow: none;
}

.daily-hero-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.daily-hero-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.daily-hero-title {
    font-size: 17px;
    font-weight: 800;
    color: #f8fafc;
}

.daily-hero-sub {
    font-size: 11px;
    color: #9ca3af;
    letter-spacing: 0.2px;
}

.daily-hero-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #334155;
    color: #cbd5e1;
    background-color: #18181b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.daily-hero-pill.ready {
    border-color: rgba(34, 197, 94, 0.6);
    color: #22c55e;
    background-color: rgba(5, 46, 22, 0.45);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
    animation: daily-ready-pulse 1.5s ease-in-out infinite;
}

.daily-claim-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 156px;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid #334155;
    background-color: #18181b;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    pointer-events: all;
    cursor: pointer;
}

.daily-claim-btn .ui-icon {
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 14px;
    padding: 0;
}

.daily-claim-btn.ready {
    border-color: rgba(34, 197, 94, 0.6);
    color: #bbf7d0;
    background-color: rgba(21, 128, 61, 0.38);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.25);
}

.daily-claim-btn.ready:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.daily-claim-btn.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.daily-unified {
    width: 100%;
    margin: 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: transparent;
    border: none;
    border-radius: 0px;
    padding: 0px;
}

.daily-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
}

.daily-grid.ready .daily-day,
.daily-day {
    pointer-events: all;
}

.daily-warning {
    font-size: 11px;
    color: #fecaca;
    background-color: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 8px;
    padding: 8px 10px;
}

.daily-day {
    flex: 1 1 170px;
    min-width: 170px;
    min-height: 98px;
    position: relative;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    background-color: #18181b;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.15s ease;
}

.daily-day-claim-delta-popup {
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 17px;
    font-weight: 900;
    line-height: 17px;
    color: #22c55e;
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
    pointer-events: none;
    z-index: 30;
    animation: daily-claim-float-a 1.2s ease-out forwards;
}

.daily-day-claim-delta-popup.alt {
    animation-name: daily-claim-float-b;
}

.daily-day.claimed {
    border-color: rgba(16, 185, 129, 0.42);
    background-color: rgba(16, 185, 129, 0.12);
}

.daily-day.next {
    border-color: rgba(99, 102, 241, 0.35);
    background-color: rgba(49, 46, 129, 0.15);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.daily-day.is-disabled {
    opacity: 0.85;
}

.daily-day.clickable {
    cursor: pointer;
    pointer-events: all;
    border-color: rgba(34, 197, 94, 0.62);
    background-color: rgba(21, 128, 61, 0.16);
    box-shadow: 0 6px 14px rgba(34, 197, 94, 0.2);
}

.daily-day.clickable:hover {
    transform: translateY(-1px);
}

.daily-day.disabled {
    opacity: 1;
}

.daily-day-top {
    font-size: 11px;
    font-weight: 700;
    color: #a8b2c0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daily-day-icon .ui-icon {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 18px;
    padding: 0;
    color: #e5e7eb;
}

.daily-day.claimed .daily-day-icon .ui-icon {
    color: #34d399;
}

.daily-day.next .daily-day-icon .ui-icon {
    color: #fbbf24;
}

.daily-day-state {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #93a1b2;
}

.daily-day.claimed .daily-day-state {
    color: #86efac;
}

.daily-day.next .daily-day-state {
    color: #d7dee9;
}

.daily-day.clickable .daily-day-state {
    color: #86efac;
}

.daily-day.clickable .daily-day-icon .ui-icon {
    color: #86efac;
}

@keyframes daily-claim-float-a {
    0% {
        transform: translateY(0px);
        opacity: 0;
    }

    20% {
        transform: translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: translateY(-34px);
        opacity: 0;
    }
}

@keyframes daily-claim-float-b {
    0% {
        transform: translateY(0px);
        opacity: 0;
    }

    20% {
        transform: translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: translateY(-34px);
        opacity: 0;
    }
}

@keyframes daily-ready-pulse {
    0% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.24); }
    50% { box-shadow: 0 0 18px rgba(34, 197, 94, 0.48); }
    100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.24); }
}

.welcome-bonus-btn .ui-icon {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 16px;
    padding: 0;
}
