/* Hantelshop – PWA */
.hs-page .hs-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0));
    -webkit-overflow-scrolling: touch;
}

.hs-hero {
    margin: 16px 0 20px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1E4B70 0%, #2563eb 55%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(30, 75, 112, 0.28);
}

.hs-hero-label {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}

.hs-hero-balance {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 14px;
}

.hs-hero-balance-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.hs-hero-balance-value {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hs-hero-balance-unit {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.9;
}

.hs-hero-progress-wrap {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.hs-hero-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.35s ease;
}

.hs-hero-today {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.9;
}

.hs-section-title {
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.hs-earn-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 22px;
}

.hs-earn-chip {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.35;
}

.hs-earn-chip strong {
    display: block;
    color: #1E4B70;
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.hs-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 8px;
}

.hs-item-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e8edf2;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hs-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.hs-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.hs-item-body {
    flex: 1;
    min-width: 0;
}

.hs-item-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.01em;
}

.hs-item-desc {
    margin: 0 0 12px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #6b7280;
}

.hs-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hs-item-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 0.88rem;
    font-weight: 800;
    color: #b45309;
}

.hs-item-btn {
    flex-shrink: 0;
    padding: 10px 18px !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.hs-item-btn--buy {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.hs-item-btn--chat {
    background: linear-gradient(135deg, #1E4B70 0%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(30, 75, 112, 0.28);
}

.hs-item-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hs-item-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.hs-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Modals */
.hs-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.hs-modal.is-open {
    display: flex;
}

.hs-modal-card {
    width: 100%;
    max-width: 360px;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.hs-modal-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 900;
    color: #1E4B70;
}

.hs-modal-card p {
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
}

.hs-modal-actions {
    display: flex;
    gap: 10px;
}

.hs-modal-actions--stack {
    flex-direction: column;
}

.hs-hidden {
    display: none !important;
}

.hs-modal-actions button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.hs-modal-cancel {
    background: #f3f4f6;
    color: #374151;
}

.hs-modal-confirm {
    background: linear-gradient(135deg, #1E4B70, #2563eb);
    color: #fff;
}

.hs-modal-ok {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: #1E4B70;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.hs-toast {
    position: fixed;
    left: 50%;
    bottom: calc(90px + env(safe-area-inset-bottom, 0));
    transform: translateX(-50%) translateY(12px);
    padding: 12px 20px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
    max-width: calc(100% - 32px);
    text-align: center;
}

body.app-has-bottom-nav .hs-toast,
body:has(.mobile-bottom-nav) .hs-toast {
    bottom: calc(100px + env(safe-area-inset-bottom, 0));
}

.hs-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
