.wallet-page {
    display: block;
}

.wallet-header {
    margin-bottom: 16px;
}

.wallet-search-section {
    margin-bottom: 18px;
}

.wallet-search-container {
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(14, 22, 42, 0.94), rgba(10, 16, 31, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    padding: 18px;
}

.wallet-search-form {
    margin: 0;
}

.wallet-search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wallet-search-input {
    flex: 1;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(22, 32, 58, 0.96), rgba(14, 22, 40, 0.98));
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.wallet-search-input::placeholder {
    color: #8ea4cf;
}

.wallet-search-input:focus {
    outline: none;
    border-color: rgba(74, 144, 226, 0.45);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.10);
}

.wallet-search-btn {
    min-width: 130px;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #3a8dff, #27d4a8);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: 0.2s ease;
}

.wallet-search-btn:hover {
    filter: brightness(1.05);
}

.wallet-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wallet-search-message {
    min-height: 26px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
}

.wallet-search-message.is-error {
    color: #ff6b6b;
}

.wallet-search-message.is-success {
    color: #7ee3c0;
}

.wallet-result-section {
    margin-top: 8px;
}

.wallet-stat-card {
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 10px;
    text-align: center;
    border-radius: 14px;
}

.wallet-stat-card .card-label {
    color: #9fb1d1;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.1;
}

.wallet-stat-card .card-value {
    color: #ffffff;
    font-size: 0.90rem;
    font-weight: 800;
    line-height: 1.1;
    word-break: break-word;
}

.wallet-link-wrap {
    text-align: center;
}

.wallet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    color: #dff4ff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.wallet-link:hover {
    color: #ffffff;
    border-color: rgba(74, 144, 226, 0.30);
    background: rgba(74, 144, 226, 0.08);
}

@media (max-width: 767px) {
    .wallet-search-box {
        flex-direction: column;
    }

    .wallet-search-btn {
        width: 100%;
    }

    .wallet-search-input {
        width: 100%;
    }
}



.wallet-chart-card {
    width: 100%;
}

.wallet-chart-wrap {
    height: 380px;
    position: relative;
}

@media (max-width: 991px) {
    .wallet-chart-wrap {
        height: 320px;
    }
}

@media (max-width: 767px) {
    .wallet-chart-wrap {
        height: 260px;
    }
}


.wallet-stat-card-primary {
    border-color: rgba(74, 144, 226, 0.25);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(74, 144, 226, 0.08) inset;
}

.wallet-analytics-layout {
    display: grid;
    grid-template-columns: 74% 26%;
    gap: 14px;
    align-items: stretch;
}

.wallet-chart-card {
    width: 100%;
    min-width: 0;
}

.wallet-chart-wrap {
    height: 420px;
    position: relative;
}

.wallet-workers-panel {
    background: linear-gradient(180deg, rgba(18, 28, 52, 0.96), rgba(11, 18, 34, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 14px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    min-width: 0;
}

.wallet-workers-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.wallet-workers-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.wallet-workers-count {
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dff1ff;
    font-size: 0.78rem;
    font-weight: 800;
}

.wallet-workers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}

.wallet-workers-list::-webkit-scrollbar {
    width: 6px;
}

.wallet-workers-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 999px;
}

.wallet-worker-item {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(22, 32, 58, 0.96), rgba(14, 22, 40, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.wallet-worker-toggle {
    width: 14px;
    height: 14px;
    accent-color: #4a90e2;
    cursor: pointer;
}

.wallet-worker-main {
    min-width: 0;
}

.wallet-worker-name {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    word-break: break-word;
}

.wallet-worker-meta {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wallet-worker-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9fb1d1;
    font-size: 0.68rem;
    font-weight: 700;
}

.wallet-worker-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px currentColor;
}

.wallet-worker-status.is-online .wallet-worker-dot {
    background: #27d4a8;
    color: #27d4a8;
}

.wallet-worker-status.is-offline .wallet-worker-dot {
    background: #ff6b6b;
    color: #ff6b6b;
}

.wallet-worker-stats {
    text-align: right;
}

.wallet-worker-hashrate {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.wallet-worker-shares {
    color: #9fb1d1;
    font-size: 0.66rem;
    margin-top: 4px;
    line-height: 1.1;
}

.wallet-workers-empty {
    color: #9fb1d1;
    text-align: center;
    font-size: 0.84rem;
    padding: 16px 8px;
}

@media (max-width: 1199px) {
    .wallet-analytics-layout {
        grid-template-columns: 1fr;
    }

    .wallet-chart-wrap {
        height: 360px;
    }

    .wallet-workers-list {
        max-height: 360px;
    }
}

@media (max-width: 767px) {
    .wallet-chart-wrap {
        height: 280px;
    }

    .wallet-workers-panel {
        padding: 12px;
        border-radius: 16px;
    }
}