html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

/* Специальные стили для модального окна редактирования бита */
#editBeatModal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    overflow: hidden;
}

#editBeatModal.show {
    display: flex;
}

.edit-beat-modal {
    background: #ffffff;
    width: min(960px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.edit-beat-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 28px 18px;
    border-bottom: 1px solid #ececec;
    background: #fff;
    z-index: 2;
    flex-shrink: 0;
}

.edit-beat-modal .modal-title {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 600;
    color: #1d1d1f;
}

.edit-beat-modal .close-modal-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #8e8e93;
    padding: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.edit-beat-modal .close-modal-btn:hover {
    background-color: #f2f2f7;
    color: #1d1d1f;
}

.edit-beat-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.edit-beat-form.is-loading {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.edit-beat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    padding: 24px 28px 16px;
    overflow-y: auto;
    flex: 1;
}

.edit-beat-preview {
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

.edit-beat-preview .preview-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

.edit-beat-preview .preview-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f1f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.edit-beat-preview .preview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-beat-preview .preview-info {
    padding: 0;
}

.edit-beat-preview .preview-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.3;
}

.edit-beat-preview .preview-author {
    margin: 0;
    font-size: 0.92rem;
    color: #7d7d82;
}

.edit-beat-preview .preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.edit-beat-preview .preview-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #1d1d1f;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.edit-beat-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    align-content: start;
}

.edit-beat-fields .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-beat-fields .form-row.full {
    grid-column: 1 / -1;
}

.edit-beat-fields label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1d1d1f;
    text-transform: none;
}

.edit-beat-fields input[type="text"],
.edit-beat-fields input[type="number"],
.edit-beat-fields textarea {
    border: 1px solid #d1d1d6;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #1d1d1f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edit-beat-fields input[type="text"]:focus,
.edit-beat-fields input[type="number"]:focus,
.edit-beat-fields textarea:focus {
    border-color: #1d1d1f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(29, 29, 31, 0.08);
}

.edit-beat-fields textarea {
    resize: vertical;
    min-height: 120px;
}

.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-prefix .input-prefix {
    position: absolute;
    left: 14px;
    font-weight: 600;
    color: #7d7d82;
    pointer-events: none;
}

.input-with-prefix input {
    padding-left: 32px;
}

.edit-form-errors {
    grid-column: 1 / -1;
    background: #fff2f2;
    color: #b3261e;
    border: 1px solid #f0b3b0;
    padding: 12px 16px;
    font-size: 0.9rem;
    display: none;
}

.edit-form-errors.show {
    display: block;
}

.edit-form-success {
    grid-column: 1 / -1;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 12px 16px;
    font-size: 0.9rem;
    display: none;
}

.edit-form-success.show {
    display: block;
}

.edit-beat-fields .custom-dropdown {
    position: relative;
    border: 1px solid #d1d1d6;
    background: #ffffff;
    border-radius: 8px;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 44px 0 14px;
    cursor: pointer;
}

.edit-beat-fields .custom-dropdown:focus-within {
    border-color: #1d1d1f;
    box-shadow: 0 0 0 2px rgba(29, 29, 31, 0.08);
}

.edit-beat-fields .custom-dropdown .dropdown-input {
    width: 100%;
    font-size: 0.95rem;
    color: #1d1d1f;
    outline: none;
    border: none;
    background: transparent;
}

.edit-beat-fields .custom-dropdown .dropdown-input.empty {
    color: #9c9c9f;
}

.edit-beat-fields .custom-dropdown .dropdown-arrow {
    position: absolute;
    right: 16px;
    font-size: 0.7rem;
    color: #7d7d82;
    transition: transform 0.2s ease;
}

.edit-beat-fields .custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.edit-beat-fields .custom-dropdown .dropdown-panel {
    position: absolute;
    left: -1px;
    right: -1px;
    top: calc(100% + 6px);
    background: #ffffff;
    border: 1px solid #d1d1d6;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    z-index: 10;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
}

.edit-beat-fields .custom-dropdown.open .dropdown-panel {
    display: flex;
}

.edit-beat-fields .custom-dropdown .dropdown-search {
    border: 1px solid #d1d1d6;
    padding: 8px 10px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.edit-beat-fields .custom-dropdown .dropdown-options {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edit-beat-fields .custom-dropdown .dropdown-option {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1d1d1f;
    transition: background-color 0.2s ease;
}

.edit-beat-fields .custom-dropdown .dropdown-option:hover,
.edit-beat-fields .custom-dropdown .dropdown-option.active {
    background: #f2f2f7;
}

.edit-beat-fields .file-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edit-beat-fields .file-field input[type="file"] {
    border: 1px dashed #bcbcbe;
    padding: 12px;
    background: #fafafa;
    font-size: 0.9rem;
    border-radius: 8px;
}

.edit-beat-fields .file-field input[type="file"]:focus {
    outline: none;
    border-color: #1d1d1f;
}

.edit-beat-fields .file-field .file-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.edit-beat-fields .file-field .file-status {
    font-size: 0.85rem;
    color: #7d7d82;
}

.edit-beat-fields .file-field .file-status--positive {
    color: #1d1d1f;
    font-weight: 600;
}

.edit-beat-fields .file-remove-btn {
    border: none;
    background: none;
    font-size: 0.85rem;
    color: #b3261e;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    padding: 2px 0;
    align-self: flex-start;
}

.edit-beat-fields .file-remove-btn[disabled] {
    color: #cfd0d3;
    cursor: default;
    text-decoration: none;
}

.edit-beat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px 24px;
    border-top: 1px solid #ececec;
    background: #fff;
    gap: 16px;
}

.edit-beat-actions .actions-right {
    display: flex;
    gap: 12px;
}

.ghost-button {
    background: #f2f2f7;
    color: #1d1d1f;
    border: none;
    padding: 10px 18px;
    font-size: 0.92rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.ghost-button:hover {
    background: #e5e5ea;
}

.ghost-button.delete-beat-modal-btn {
    color: #b3261e;
    background: #fef2f2;
}

.ghost-button.delete-beat-modal-btn:hover {
    background: #fde4e4;
}

.primary-button.save-edit {
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.primary-button.save-edit:hover {
    background: #000000;
}

.primary-button.save-edit.loading {
    pointer-events: none;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-button.save-edit.loading .btn-label {
    color: #ffffff;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.cancel-edit {
    background: none;
}

@media (max-width: 1024px) {
    .edit-beat-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .edit-beat-preview {
        position: static;
        max-width: 320px;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .edit-beat-modal {
        width: calc(100vw - 16px);
    }

    .edit-beat-layout {
        padding: 20px;
    }

    .edit-beat-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .edit-beat-actions .actions-right {
        justify-content: space-between;
    }

    .ghost-button,
    .primary-button.save-edit {
        width: 100%;
        text-align: center;
    }
}

/* Предотвращение прокрутки страницы под модальным окном */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.profile-container {
    max-width: 960px; /* Было 1200px */
    margin: 40px auto;
    padding: 0 20px;
}

.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-left, .content-area {
    width: 100%;
}

.profile-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-header {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.profile-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 12px;
    text-align: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.profile-stats > * {
    text-decoration: none;
    color: inherit;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background-color .2s;
}

.profile-stats > a:hover {
    background-color: #f5f5f5;
}

.profile-stats div, .profile-stats a {
    font-size: 0.9rem;
}

.profile-stats span {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.profile-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #f0f0f0; /* Light gray circle background */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.social-btn:hover {
    background-color: #e0e0e0;
}

.social-btn svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: #2C2C2C;
}

.profile-description {
    text-align: center;
    padding: 0 16px;
    color: #555;
    line-height: 1.6;
}

.profile-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.report-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.report-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.report-btn .material-symbols-outlined {
    font-size: 18px;
    color: #666;
}

.edit-profile-btn, .follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
    gap: 8px;
}

.edit-profile-btn:hover, .follow-btn:hover {
    background: #f9f9f9;
}

.follow-btn.following {
    background-color: #2C2C2C;
    color: #fff;
    border-color: #2C2C2C;
}

/* Balance action buttons */
.balance-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.balance-btn {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
}

.balance-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
}

.balance-btn .material-symbols-outlined {
    font-size: 24px;
    color: #333;
}

.balance-btn.topup-btn {
    border-color: #333;
    color: #333;
}

.balance-btn.topup-btn:hover {
    background: #333;
    color: #fff;
}

.balance-btn.withdraw-btn {
    border-color: #333;
    color: #333;
}

.balance-btn.withdraw-btn:hover {
    background: #333;
    color: #fff;
}

.content-area {
    background: #fff;
    border-radius: 8px;
    box-shadow: none;
}

/* Основное определение для десктопа */
.beats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 64px auto;
}

/* Для больших планшетов и ноутбуков */
@media (max-width: 1200px) {
    .beats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Для планшетов */
@media (max-width: 900px) {
    .beats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Для мобильных */
@media (max-width: 600px) {
    .beats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
        margin-top: 0;
    }
}

.beat-card {
    background: #fff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
    font-family: 'IBM Plex Mono', monospace;
    opacity: 0;
    transform: translateY(30px);
    animation: beat-fade-in 0.7s cubic-bezier(.4,0,.2,1) forwards;
    width: 100%;
    min-width: 0;
    max-width: none;
}
.beat-card.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes beat-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.beat-card:hover {
    border-color: #d0d0d0;
}
.beat-cover {
    position: relative;
}
.beat-cover .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.play-button .material-symbols-outlined {
    font-size: 36px;
}
.beat-card img, .beat-cover > div {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
    display: block;
    border: none;
}
.beat-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.beat-title {
    font-size: 1em;
    font-weight: 500;
    margin: 8px 0 4px 0;
    white-space: pre-line;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #000;
    text-decoration: none;
    min-height: 2.6em;
    max-height: 2.6em;
    padding: 0;
}

.beat-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.beat-title a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.beat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 0 12px 12px 12px;
    margin: 0;
}
.price-btn {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1.1em;
    transition: background-color 0.2s;
    height: 42px;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.price-btn:hover {
    background-color: #f5f5f5;
}
.delete-beat-btn {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #222;
    cursor: pointer;
    transition: background 0.15s, border 0.15s;
    z-index: 3;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
}
.delete-beat-btn:hover {
    background: #f5f5f5;
    border: 1.5px solid #bbb;
}

.sold-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
    padding: 8px 14px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 1em;
    transition: background 0.15s, border 0.15s;
    white-space: nowrap;
    overflow: hidden;
}
.sold-info:hover {
    background: #f5f5f5 !important;
    border-color: #bbb !important;
}
.buyer-info {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.sold-badge {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reviews-container { 
    scrollbar-width: thin; 
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent; 
}
.reviews-container::-webkit-scrollbar { width: 6px; }
.reviews-container::-webkit-scrollbar-track { background: transparent; }
.reviews-container::-webkit-scrollbar-thumb { 
    background-color: rgba(0, 0, 0, 0.2); 
    border-radius: 8px; 
}
.review-item { transition: background-color 0.2s ease; }
.review-item:hover { background-color: rgba(0, 0, 0, 0.01); }
.rating { font-size: 0.9rem; }
.review-text { color: #4a5568; line-height: 1.5; }

.reviews-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.reviews-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: #f5b301;
    font-size: 1rem;
    display: flex;
    gap: 2px;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.review-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #222;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.review-button:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-1px);
}

.reviews-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    max-width: 100%;
    padding: 16px 12px 16px 16px;
    box-sizing: border-box;
}

.reviewer-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 10px 12px 10px 10px;
    margin-bottom: 8px;
}

.reviewer-info img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.reviewer-info > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-details h6 {
    margin: 0 0 1px 0;
    font-size: 0.92em;
    font-weight: 500;
    color: #222;
}

.reviewer-details small {
    color: #aaa;
    font-size: 0.75em;
    margin: 0;
    padding: 0;
}

.review-rating {
    margin-top: 2px;
    font-size: 0.92em;
    color: #f5b301;
}

.review-text {
    margin: 6px 0 0 0;
    font-size: 0.97em;
    color: #444;
    line-height: 1.4;
}

.no-reviews {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.no-reviews i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-reviews p {
    margin: 0;
    font-size: 0.95rem;
}

.pagination {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.pagination-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-item {
    padding: 6px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-item:hover {
    background-color: #f5f5f5;
    color: #222;
}

.pagination-item.active {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

/* Стилизация скроллбара */
.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.reviews-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px; border-bottom: 1px solid #eee; }
.reviews-title { flex-direction: column; align-items: flex-start; gap: 8px; }
.reviews-main-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0; }
.review-plus-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: none; border: none; padding: 0; margin-left: 8px; transition: background 0.15s; }
.review-plus-btn:hover { background: #f5f5f5; }
.review-plus-btn svg { display: block; }

/* Reviews styles */
.reviews-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.review-plus-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s;
}

.review-plus-btn:hover {
    background: #f5f5f5;
}

.overall-rating {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: #f5b301;
    display: flex;
    gap: 2px;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.reviews-list {
    max-height: 600px;
    overflow-y: auto;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    gap: 16px;
}

.reviewer-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-details h6 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 500;
    color: #222;
}

.reviewer-details small {
    color: #666;
    font-size: 0.85rem;
}

.review-rating {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.review-text {
    color: #444;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

.no-reviews {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee;
}

.pagination-container {
    display: flex;
    gap: 8px;
}

.pagination-item {
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-item:hover {
    background: #f5f5f5;
    color: #222;
}

.pagination-item.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* Модальное окно для отзыва */
.review-modal-center { position: fixed; z-index: 1000; left: 0; top: 0; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.12); }
.review-modal-window { background: #fff; border-radius: 16px; max-width: 480px; width: 100%; padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.review-modal-header { margin-bottom: 32px; }
.reviewer-profile { display: flex; align-items: center; gap: 16px; }
.reviewer-profile img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.reviewer-info h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 4px 0; color: #222; }
.reviewer-info p { font-size: 0.95rem; color: #666; margin: 0; }
.rating-section { margin-bottom: 24px; }
.rating-label { display: block; font-weight: 500; margin-bottom: 12px; color: #222; }
.rating-stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 8px; }
.rating-stars input[type="radio"] { display: none; }
.star-label { font-size: 2.5rem; color: #ddd; cursor: pointer; transition: color 0.2s ease; }
.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label { color: #f5b301; }
.review-text-section { margin-bottom: 24px; }
.text-label { display: block; font-weight: 500; margin-bottom: 8px; color: #222; }
.form-control { width: 100%; padding: 12px 16px; border: 1.5px solid #e0e0e0; border-radius: 12px; font-size: 1rem; min-height: 120px; resize: vertical; transition: all 0.2s ease; }
.form-control:focus { border-color: #222; outline: none; box-shadow: 0 0 0 4px rgba(34,34,34,0.1); }
.review-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.submit-button { background: #222; color: #fff; border: none; border-radius: 12px; padding: 14px 24px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; width: 100%; }
.submit-button:hover { background: #000; transform: translateY(-1px); }
.cancel-button { color: #666; text-align: center; text-decoration: none; font-size: 0.95rem; padding: 8px; background: none; border: none; cursor: pointer; }
.cancel-button:hover { color: #222; }
.error-message { color: #dc3545; font-size: 0.875rem; margin-top: 8px; }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card.balance-card {
    grid-column: span 2;
    padding: 24px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.stat-card.history-card,
.charts-container {
    grid-column: span 4;
}
.stat-card.plays-card, 
.stat-card.followers-card {
    /* Remove specific column span to allow for even distribution */
}
.stat-card {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    grid-column: span 1;
    box-shadow: none;
    min-height: 120px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Charts */
.charts-container { 
    margin-top: 20px; 
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Hide scrollbar */
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.charts-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.charts-container h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}
.chart-filters { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 20px; 
}
.chart-filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.chart-filter-btn:hover {
    background: #f5f5f5;
}
.chart-filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}
.charts-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
    /* Hide scrollbar */
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.charts-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.chart-container { 
    background: transparent; 
    padding: 20px; 
    border-radius: 8px; 
    border: none;
    height: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.profit-chart {
    grid-column: 1 / -1;
}
.chart-container h4 { 
    margin: 0 0 15px 0; 
    text-align: center; 
    font-size: 1rem;
    font-weight: 500;
    flex-shrink: 0;
}
.chart-container canvas {
    flex: 1;
    max-height: 160px !important;
    width: 100% !important;
}

/* Follower Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); }
.modal-content { background-color: #fefefe; margin: 15% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 400px; border-radius: 12px; }
.follow-list-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px; }
.follow-list-title { margin: 0; font-size: 1.2rem; }
.close-modal-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; border: none; background: none; cursor: pointer; }
.close-modal-btn:hover, .close-modal-btn:focus { color: black; text-decoration: none; }
.follow-list-ul { list-style: none; padding: 0; }
.follow-list-item a { display: flex; align-items: center; gap: 12px; padding: 8px; text-decoration: none; color: #333; border-radius: 8px; transition: background-color .2s; }
.follow-list-item a:hover { background-color: #f5f9f9; }
.follow-list-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.purchases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
.purchase-card { border: 1px solid #ddd; border-radius: 8px; background: #fff; overflow: hidden; }
.purchase-card a { display: block; }
.purchase-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.purchase-info { padding: 12px; }
.purchase-title { font-weight: 500; font-size: 1em; margin: 0; }
.purchase-user { font-size: 0.8em; color: #777; margin: 4px 0; }
.download-link { display: block; margin-top: 10px; font-weight: 500; }

.favorite-btn {
    background: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
    color: #000;
}
.favorite-btn:hover {
    background-color: #f5f5f5;
}
.favorite-btn .material-symbols-outlined {
    font-size: 1.1em !important;
}
.favorite-btn.favorited {
    color: #e54b4b;
}

.subscription-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
}

.subscription-card h3 {
    color: #1e293b;
}

.subscription-card p {
    margin: 8px 0;
}

@media (max-width: 500px) {
    .player-info {
        display: none;
    }
    .player-controls {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile responsive styles */
@media (max-width: 1200px) {
    .profile-grid {
        grid-template-columns: 280px 1fr;
        gap: 15px;
    }
    
    .beats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .profile-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .profile-left {
        width: 100%;
        max-width: 100%;
    }
    .profile-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        transform: translateY(-2vh) !important;
    }
    
    .content-area {
        order: 2;
        margin-top: 0;
    }
    
    .beats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 12px !important;
    }
    
    .balance-card {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }
    
    /* Charts responsive */
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .chart-container {
        height: 250px;
        padding: 16px;
    }
    
    .chart-container h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 600px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }
    .profile-container,
    .profile-grid,
    .content-area,
    .dashboard-grid,
    .charts-grid,
    .tab-content,
    .beats-grid,
    .kits-grid {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .profile-container {
        margin: 10px auto !important;
        padding: 0 1vw !important;
        max-width: 98vw !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .profile-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .profile-left {
        width: 100% !important;
        max-width: 100% !important;
    }
    .profile-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        transform: translateY(-2vh) !important;
    }
    .dashboard-grid,
    .charts-grid,
    .tab-content {
        width: 100% !important;
        max-width: 420px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    .stat-card,
    .chart-container {
        width: 100% !important;
        max-width: 420px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    .profile-header {
        align-items: center !important;
        text-align: center !important;
    }
    .profile-avatar {
        width: 64px;
        height: 64px;
    }
    .profile-name {
        font-size: 1.2rem;
    }
    .profile-stats {
        gap: 18px;
        margin-top: 8px;
        justify-content: center;
    }
    .profile-stats div, .profile-stats a {
        font-size: 0.95rem;
    }
    .profile-stats span {
        font-size: 1.1rem;
    }
    .edit-profile-btn, .follow-btn {
        max-width: 100%;
        padding: 12px 0;
        font-size: 1.1rem;
        border-radius: 8px;
        margin-top: 10px;
    }
    .balance-actions {
        gap: 12px;
        margin-top: 12px;
        justify-content: center;
    }
    .balance-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    .balance-btn .material-symbols-outlined {
        font-size: 1.3rem;
    }
    /* Dashboard/stat cards */
    .dashboard-grid:not(.redesigned), .charts-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        margin-top: 16px;
        align-items: center;
        width: 100%;
        /* max-width убираем */
    }
    
    /* Специальные стили для redesigned dashboard на мобильных */
    .dashboard-grid.redesigned {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 12px !important;
    }
    
    .dashboard-grid.redesigned .balance-card {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        margin-bottom: 8px !important;
    }
    
    .dashboard-grid.redesigned .stat-card:not(.balance-card) {
        grid-column: span 1 !important;
    }
    .stat-card {
        width: 100%;
        /* max-width убираем */
        min-width: 0;
        padding: 20px 12px;
        border-radius: 18px;
        min-height: 120px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        background: #fff;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .stat-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .stat-card p {
        font-size: 2rem;
        margin: 0;
        font-weight: 700;
    }
    .chart-container {
        width: 100%;
        /* max-width убираем */
        height: 140px !important;
        padding: 12px;
        min-height: 110px;
        border-radius: 8px;
        box-shadow: none;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .chart-container h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .chart-container canvas {
        max-height: 90px !important;
    }
    /* Tabs */
    .profile-tabs {
        display: flex;
        gap: 24px;
        border-bottom: 1px solid #eee;
        margin-bottom: 24px;
        justify-content: center; /* Центрируем табы */
    }
    .tab-link {
        background: none !important;
        border: none !important;
        border-radius: 8px !important;
        color: #222 !important;
        font-weight: 400 !important;
        font-size: 1.05rem !important;
        padding: 12px 18px 10px 18px !important;
        margin: 0 !important;
        box-shadow: none !important;
        position: relative;
        transition: color 0.18s;
        outline: none;
    }
    .tab-link.active {
        color: #000 !important;
    }
    .tab-link.active::after {
        content: '';
        display: block;
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 0;
        height: 2.5px;
        background: #000;
        border-radius: 2px;
    }
    .tab-link:not(.active):hover {
        color: #888 !important;
    }
    .tab-content {
        display: none;
        padding: 24px;
        margin-top: 0;
    }
    .tab-content.active {
        display: block;
        margin-top: 0;
    }
    .dashboard-grid, .charts-grid, .profile-card, .tab-content {
        margin-bottom: 14px;
    }
    .beats-grid,
    .kits-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 12px !important;
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto 14px auto !important;
        box-sizing: border-box !important;
    }
    .content-area {
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    .profile-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .profile-container {
        margin: 16px auto;
        padding: 0 8px;
    }
    
    .profile-left {
        width: 100%;
        max-width: 100%;
    }
    .profile-card {
        margin-top: 20px;
        padding: 0 8px 8px 8px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        transform: translateY(-2vh) !important;
    }
    
    .profile-header {
        padding: 12px;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
    }
    
    .report-btn {
        width: 28px;
        height: 28px;
        top: 15px;
        right: 15px;
    }
    
    .report-btn .material-symbols-outlined {
        font-size: 16px;
    }
    
    .profile-name {
        font-size: 1rem;
    }
    
    .profile-stats {
        gap: 16px;
        margin-top: 6px;
    }
    
    .profile-stats div, .profile-stats a {
        font-size: 0.75rem;
    }
    
    .profile-stats span {
        font-size: 0.9rem;
    }
    
    /* Stat cards для очень маленьких экранов */
    .stat-card {
        padding: 12px;
        min-height: 70px;
    }
    
    .balance-card {
        min-height: 250px;
        padding: 20px;
    }
    
    .balance-card h3 {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .balance-card .balance-amount {
        font-size: 3rem;
        margin-bottom: 12px;
    }
    
    .balance-card .cardholder-name {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
    
    .balance-card .balance-actions {
        gap: 8px;
        margin-top: auto;
    }
    
    .balance-card .balance-btn {
        padding: 10px 16px;
        min-width: 100px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .stat-card h3 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .stat-card p {
        font-size: 1.5rem;
    }
    
    /* Charts для очень маленьких экранов */
    .charts-grid {
        gap: 8px;
    }
    
    .chart-container {
        height: 160px !important;
        padding: 8px;
        min-height: 140px;
        background: transparent;
        border: none;
        border-radius: 8px;
        box-shadow: none;
    }
    
    .chart-container h4 {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .chart-container canvas {
        max-height: 120px !important;
    }
    
    /* Balance actions для очень маленьких экранов */
    .balance-actions {
        gap: 8px;
        margin-top: 12px;
    }
    
    .balance-btn {
        width: 36px;
        height: 36px;
    }
    
    .balance-btn .material-symbols-outlined {
        font-size: 18px;
    }
    
    /* Beat cards для очень маленьких экранов */
    .beat-card img,
    .beat-cover img {
        height: auto !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    
    .beat-cover {
        aspect-ratio: 1 / 1;
    }
    
    .beat-info {
        padding: 8px 10px;
    }
    
    .beat-title {
        font-size: 0.9em;
        margin: 8px 0 4px 0;
    }
    
    .beat-user {
        font-size: 0.8em;
        padding: 0;
        margin: 0 0 8px 0;
    }
    
    .price-btn {
        padding: 6px 8px;
        font-size: 0.9em;
    }
    
    .favorite-btn {
        width: 32px;
        height: 32px;
    }
    
    .favorite-btn .material-symbols-outlined {
        font-size: 1.1em;
    }
}

.beat-card .icon-btn {
    background: none; /* Убран фон */
    border: 1px solid #ddd; /* Добавлена обводка */
    color: #000; /* Цвет иконки */
    font-size: 1.4em; /* Размер иконки по умолчанию */
    padding: 0;
    width: 42px; /* Размер по умолчанию для десктопа */
    height: 42px;
    border-radius: 8px; /* Убраны скругления */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    box-shadow: none; /* Убран shadow */
}
.beat-card .icon-btn:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
}
.beat-card .icon-btn .material-symbols-outlined {
    font-size: 1.4em;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 600px) {
    .beat-card .icon-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1em !important;
    }
    .beat-card .icon-btn .material-symbols-outlined {
        font-size: 1.1em !important;
    }
}

@media (max-width: 480px) {
    .beat-card .icon-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1em !important;
    }
    .beat-card .icon-btn .material-symbols-outlined {
        font-size: 1em !important;
    }
}

.beat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* For Safari */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more responsive */
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.5em;
    margin: 0;
}

.close-modal-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 10px 0;
}

/* Form styles for modal - copied and adapted from upload_beat.html styles */
.modal-content .form-box {
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.modal-content .form-box-title {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.modal-content .form-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.modal-content .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-content .form-group.full-width {
    grid-column: 1 / -1;
}

.modal-content .form-group label {
    font-size: 0.9em;
    color: #555;
}

.modal-content .product-type-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-content .product-type-select label {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    font-size: 1em;
    color: #000;
}

.modal-content .product-type-select input[type="radio"] {
    display: none;
}

.modal-content .product-type-select input[type="radio"]:checked + label {
    background-color: #f0f0f0;
    border-color: #000;
    font-weight: 500;
}

.modal-content .form-group input, .modal-content .form-group textarea, .modal-content .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1em;
    box-sizing: border-box;
}

.modal-content .form-group input[type="file"] {
    padding: 4px;
    height: 42px;
}

.modal-content .form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-content .form-errors {
    color: #d93025;
    font-size: 0.8em;
    margin-top: 4px;
    list-style-type: none;
    padding: 0;
}

.modal-content .custom-dropdown {
    position: relative;
    width: 100%;
}

.modal-content .dropdown-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1em;
    background: white;
    cursor: pointer;
    position: relative;
}

.modal-content .dropdown-input:focus {
    outline: none;
    border-color: #000;
}

.modal-content .dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.2s;
}

.modal-content .dropdown-arrow.open {
    transform: translateY(-50%) rotate(180deg);
}

.modal-content .dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.modal-content .dropdown-options.show {
    display: block;
}

.modal-content .dropdown-search {
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    width: 100%;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9em;
    outline: none;
}

.modal-content .dropdown-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-content .dropdown-option:hover {
    background-color: #f5f5f5;
}

.modal-content .dropdown-option.selected {
    background-color: #e0e0e0;
}

.modal-content .dropdown-option.hidden {
    display: none;
}

.modal-content .form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
}

.modal-content .btn {
    padding: 10px 32px;
    border-radius: 20px;
    border: 1px solid #000;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1em;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
}

.modal-content .btn-primary {
    background: #000;
    color: #fff;
}

.modal-content .btn-secondary {
    background: #fff;
    color: #000;
}

/* Responsive styles for modal and history */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    .modal-title {
        font-size: 1.3em;
    }
    .close-modal-btn {
        font-size: 24px;
    }
    .modal-content .form-inner-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .modal-content .form-group input, .modal-content .form-group textarea, .modal-content .form-group select,
    .modal-content .dropdown-input {
        font-size: 0.95em;
        padding: 8px 12px;
    }
    .modal-content .product-type-select label {
        padding: 8px;
        font-size: 0.95em;
    }
    .modal-content .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .modal-content .btn {
        width: 100%;
        text-align: center;
    }
    
    .history-item {
        font-size: 0.95em;
        padding: 12px 14px;
        gap: 12px;
    }
    
    .history-item span:first-child {
        min-width: 100px;
        max-width: 100px;
    }
    
    .history-item span:nth-child(2) a {
        max-width: 120px;
    }
    
    .history-item span:last-child {
        min-width: 80px;
        max-width: 80px;
    }
}

/* Player styles (адаптировано с beat_list) */
.player-container {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    max-width: 1072px;
    width: calc(100% - 30px);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    transition: bottom 0.3s ease-out;
}
.player-content { display: flex; align-items: center; width: 100%; cursor: pointer; }
.player-beat-link { display: flex; align-items: center; flex-grow: 1; text-decoration: none; color: inherit; cursor: pointer; }
.player-beat-link:hover { text-decoration: none; color: inherit; }
.player-cover { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; margin-right: 15px; background-color: #f0f0f0; }
.player-info { flex-grow: 1; margin-right: 20px; }
.player-title { font-size: 1em; font-weight: 500; margin: 0; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 0.85em; color: #888; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; align-items: center; gap: 15px; max-width: 500px; flex-grow: 1; justify-content: flex-end; }
.player-play-pause-button { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; color: #000; }
.player-play-pause-button .material-symbols-outlined { font-size: 40px; }
.current-time, .duration { font-size: 0.9em; color: #555; min-width: 40px; text-align: center; }
.progress-bar { flex-grow: 1; -webkit-appearance: none; width: 100%; height: 6px; background: #e0e0e0; border-radius: 5px; outline: none; cursor: pointer; margin: 0 10px; }
.progress-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #000; cursor: pointer; box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.4); }
.progress-bar::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #000; cursor: pointer; box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.4); }
.player-volume-button { width: 28px; height: 28px; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.player-volume-button .material-symbols-outlined { font-size: 20px; }
.volume-bar { width: 80px; margin-left: 8px; }


/* Close button for player */
.player-close {
    position: absolute;
    top: -34px;
    right: 6px;
    background: none;
    border: none;
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-close:hover {
    background-color: #f5f5f5;
}
@media (max-width: 768px) {
    .player-container { padding: 6px 12px; bottom: 0; width: calc(100% - 16px); border-radius: 8px; }
    .player-cover { width: 32px; height: 32px; margin-right: 8px; }
    .player-title { font-size: 0.85em; }
    .player-artist { font-size: 0.75em; }
    .player-controls { gap: 8px; }
    .player-play-pause-button .material-symbols-outlined { font-size: 28px; }
    .current-time, .duration { font-size: 0.75em; min-width: 35px; }
    .progress-bar { height: 3px; margin: 0 6px; }
    .progress-bar::-webkit-slider-thumb, .progress-bar::-moz-range-thumb { width: 10px; height: 10px; }
    .volume-bar { width: 50px; margin-left: 6px; }
    .player-volume-button { width: 28px; height: 28px; }
    .player-volume-button .material-symbols-outlined { font-size: 20px; }
}

@media (max-width: 700px) {
    .beats-grid {
        overflow-x: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .beats-grid::-webkit-scrollbar {
        display: none;
    }
}

/* --- Широкие строки истории с отступами и суммой --- */
.stat-card.history-card {
    width: 100%;
    max-width: inherit;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}
.history-list {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 14px 18px;
    border-bottom: 1px solid #ececec;
    font-size: 1.08em;
    background: transparent;
    box-sizing: border-box;
    gap: 18px;
}

/* Стили для обрезания длинного текста в истории */
.history-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item span:first-child {
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;
}

.history-item span:nth-child(2) {
    flex: 1;
    min-width: 0;
    max-width: none;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.history-item span:nth-child(2) a {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.history-item span:last-child {
    min-width: 120px;
    max-width: 120px;
    flex-shrink: 0;
    text-align: right;
}



@media (max-width: 480px) {
    .history-item {
        font-size: 0.9em;
        padding: 10px 12px;
        gap: 10px;
    }
    
    .history-item span:first-child {
        min-width: 90px;
        max-width: 90px;
    }
    
    .history-item span:nth-child(2) a {
        max-width: 100px;
    }
    
    .history-item span:last-child {
        min-width: 70px;
        max-width: 70px;
    }
}
.history-item:last-child {
    border-bottom: none;
}
.dashboard-history {
    margin-top: 36px;
}
.history-spoiler {
    border: none;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.history-spoiler summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s;
}
.history-spoiler summary:hover {
    background-color: #f9f9f9;
}
.history-spoiler summary::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    transition: transform 0.2s;
}
.history-spoiler[open] > summary::after {
    transform: rotate(180deg);
}
.history-list {
    padding: 0 20px 20px 20px;
    margin: 0;
    list-style: none;
}

@media (min-width: 1000px) {
    /* Только для личного кабинета битмейкера */
    .profile-tabs {
        margin-top: 32px;
    }
    .beats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .beats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    .beat-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .beat-card img, .beat-cover > div,
    .beat-cover img {
        height: auto !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    
    .beat-cover {
        aspect-ratio: 1 / 1;
    }
}

.beats-grid-public {
    display: grid;
    grid-template-columns: repeat(3, 250px);
    gap: 26px;
    justify-content: center;
    max-width: 802px;
    margin: 32px auto 64px auto;
}
@media (max-width: 1200px) {
    .beats-grid-public {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 540px;
    }
}
@media (max-width: 900px) {
    .beats-grid-public {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 540px;
    }
}
@media (max-width: 600px) {
    .beats-grid-public {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
        margin-top: 20px;
        max-width: 98vw;
    }
}
@media (max-width: 480px) {
    .beats-grid-public {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
        max-width: 98vw;
    }
}
/* Удалить margin: 0 !important; для .beats-grid-public .beat-card */
    .profile-container {
        max-width: 960px; /* Было 1200px */
        margin: 40px auto;
        padding: 0 20px;
    }
    .profile-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .profile-left, .content-area {
        width: 100%;
    }

    .profile-tabs {
        display: flex;
        gap: 24px;
        border-bottom: 1px solid #eee;
        margin-bottom: 24px;
        justify-content: center; /* Центрируем табы */
    }
    .tab-link {
        background: none !important;
        border: none !important;
        border-radius: 8px !important;
        color: #222 !important;
        font-weight: 400 !important;
        font-size: 1.05rem !important;
        padding: 12px 18px 10px 18px !important;
        margin: 0 !important;
        box-shadow: none !important;
        position: relative;
        transition: color 0.18s;
        outline: none;
    }
    .tab-link.active {
        color: #000 !important;
    }
    .tab-link.active::after {
        content: '';
        display: block;
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 0;
        height: 2.5px;
        background: #000;
        border-radius: 2px;
    }
    .tab-link:not(.active):hover {
        color: #888 !important;
    }
    .tab-content {
        display: none;
        padding: 24px;
        margin-top: 0;
    }
    .tab-content.active {
        display: block;
        margin-top: 0;
    }
    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .stat-card {
        background:rgb(255, 255, 255);
        padding: 24px;
        border-radius: 8px; /* Небольшое скругление */
        border: 1px solid #f0f0f0; /* Светлая обводка */
        text-align: center;
    }
.stat-card h3 {
    margin: 0 0 6px 0;
    font-size: 0.9em;
    color: #888;
    font-weight: 500;
}
.stat-number {
    font-size: 1.8em;
    font-weight: 500;
    line-height: 1.2;
}
    .balance-card {
        grid-column: span 2;
        padding: 24px;
    }
    .history-card {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
    .history-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }


    /* Re-using beat card styles from your original file, simplified */
    .beat-card {
        background: #fff;
        border: none;
        border-radius: 12px;
        overflow: hidden;
    }
    .beat-card img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    .beat-info { padding: 12px; }
    .beat-title { font-weight: 500; }
    .beat-price { color: #555; }
    
    /* Mobile responsive styles */
    @media (max-width: 900px) {
        .profile-grid {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }
        
        .profile-left {
            width: 100%;
            max-width: 100%;
        }
        
        .profile-card {
            order: 1;
            margin-top: 40px;
            padding: 0 16px 16px 16px;
        }
        
        .content-area {
            order: 2;
            margin-top: 0;
        }
        
        .beats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }
        
        .dashboard-grid {
            grid-template-columns: 1fr 1fr !important;
            grid-template-rows: auto auto auto !important;
            gap: 12px !important;
        }
        
        .balance-card {
            grid-column: 1 / -1 !important;
            grid-row: 1 !important;
        }
    }
    
    @media (max-width: 600px) {
        .profile-container {
            margin: 20px auto;
            padding: 0 12px;
        }
        
        .profile-grid {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .profile-left {
            width: 100%;
            max-width: 100%;
        }
        
        .profile-card {
            order: 1;
            margin-top: 30px;
            padding: 0 12px 12px 12px;
            border-radius: 12px;
        }
        
        .content-area {
            order: 2;
            margin-top: 0;
        }
        
        .profile-header {
            padding: 16px;
        }
        
        .profile-avatar {
            width: 60px;
            height: 60px;
        }
        
        .profile-name {
            font-size: 1.1rem;
        }
        
        .profile-stats {
            gap: 20px;
            margin-top: 8px;
        }
        
        .profile-stats div, .profile-stats a {
            font-size: 0.8rem;
        }
        
        .profile-stats span {
            font-size: 1rem;
        }
        
        .beats-grid {
            grid-template-columns: 1fr;
            gap: 16px;
            margin-top: 20px;
        }
        
        .beat-card img,
        .beat-cover img {
            height: auto !important;
            aspect-ratio: 1 / 1;
            object-fit: cover;
        }
        
        .beat-cover {
            aspect-ratio: 1 / 1;
        }
        
        .beat-info {
            padding: 10px 12px;
        }
        
        /* Dashboard responsive */
        .dashboard-grid:not(.redesigned) {
            grid-template-columns: 1fr !important;
            grid-template-rows: auto auto auto auto auto !important;
            gap: 10px !important;
        }
        
        .dashboard-grid.redesigned {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            grid-template-rows: auto auto auto !important;
            gap: 10px !important;
        }
        
        .dashboard-grid.redesigned .balance-card {
            grid-column: 1 / -1 !important;
            grid-row: 1 !important;
            padding: 16px !important;
            min-height: 120px !important;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin-bottom: 6px !important;
        }
        
        .dashboard-grid.redesigned .stat-card:not(.balance-card) {
            grid-column: span 1 !important;
            padding: 12px !important;
            min-height: 120px !important;
        }
        
        .balance-card {
            grid-column: 1 !important;
            grid-row: 1 !important;
            padding: 16px !important;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .stat-card {
            padding: 12px;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .stat-card h3 {
            font-size: 0.85rem;
        }
        
        .stat-card p {
            font-size: 1.6rem;
        }
        
        /* Charts responsive */
        .charts-grid {
            grid-template-columns: 1fr !important;
            gap: 12px;
        }
        
        .chart-container {
            height: 100px !important;
            padding: 12px;
            background: transparent;
            border: none;
            border-radius: 8px;
            box-shadow: none;
        }
        
        .chart-container h4 {
            font-size: 0.9rem;
            margin-bottom: 10px;
        }
        
        /* Profile tabs responsive */
        .profile-tabs {
            padding: 8px 16px 0;
            gap: 4px;
            overflow-x: auto;
        }
        
        .tab-link {
            padding: 8px 16px;
            font-size: 0.9rem;
            white-space: nowrap;
        }
        
        .tab-content {
            padding: 16px;
        }
        
        /* Balance actions responsive */
        .balance-actions {
            gap: 12px;
            margin-top: 16px;
        }
        
        .balance-btn {
            width: 40px;
            height: 40px;
        }
        
        .balance-btn .material-symbols-outlined {
            font-size: 20px;
        }
        
        /* Social buttons responsive */
        .profile-socials {
            gap: 10px;
            margin-top: 12px;
        }
        
        .social-btn {
            width: 36px;
            height: 36px;
        }
        
        .social-btn svg {
            width: 20px;
            height: 20px;
        }
        
        /* Profile actions responsive */
        .profile-actions {
            margin-top: 16px;
        }
        
        .edit-profile-btn, .follow-btn {
            max-width: 100%;
            padding: 10px 20px;
            font-size: 0.95rem;
        }
        
        /* History responsive */
        .dashboard-history {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .history-card {
            margin-top: 0;
        }
        
        .history-item {
            padding: 10px 0;
            font-size: 0.9rem;
            flex-direction: column;
            gap: 4px;
        }
        
        /* Reviews responsive */
        .reviews-header {
            padding: 16px;
        }
        
        .reviews-title {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
        
        .reviews-main-title {
            font-size: 1.1rem;
        }
        
        .reviews-list {
            padding: 12px 8px 12px 12px;
            gap: 8px;
        }
        
        .reviewer-info {
            padding: 8px 10px 8px 8px;
            gap: 10px;
        }
        
        .reviewer-info img {
            width: 28px;
            height: 28px;
        }
        
        .reviewer-details h6 {
            font-size: 0.85em;
        }
        
        .reviewer-details small {
            font-size: 0.7em;
        }
        
        .review-text {
            font-size: 0.9em;
        }
        
        /* Purchases responsive */
        .purchases-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }
        
        .purchase-card img {
            height: 200px;
        }
        
        .purchase-info {
            padding: 10px;
        }
        
        .purchase-title {
            font-size: 0.95em;
        }
        
        .purchase-user {
            font-size: 0.75em;
        }
        
        /* Modal responsive */
        .modal-content {
            width: 90%;
            margin: 10% auto;
            padding: 16px;
        }
        
        .follow-list-header {
            padding-bottom: 8px;
            margin-bottom: 8px;
        }
        
        .follow-list-title {
            font-size: 1.1rem;
        }
        
        .follow-list-item a {
            padding: 6px;
            gap: 10px;
        }
        
        .follow-list-avatar {
            width: 32px;
            height: 32px;
        }
    }
    
    @media (max-width: 480px) {
        .profile-container {
            margin: 15px auto;
            padding: 0 8px;
        }
        
        .profile-card {
            margin-top: 20px;
            padding: 0 8px 8px 8px;
            border-radius: 8px;
        }
        
        .profile-header {
            padding: 12px;
        }
        
        .profile-avatar {
            width: 50px;
            height: 50px;
        }
        
        .profile-name {
            font-size: 1rem;
        }
        
        .profile-stats {
            gap: 16px;
            margin-top: 6px;
        }
        
        .profile-stats div, .profile-stats a {
            font-size: 0.75rem;
        }
        
        .profile-stats span {
            font-size: 0.9rem;
        }
        
        /* Stat cards для очень маленьких экранов */
        .stat-card {
            padding: 12px;
            min-height: 105px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .stat-card h3 {
            font-size: 0.8rem;
            margin-bottom: 6px;
        }
        
        .stat-card p {
            font-size: 1.5rem;
        }
        
        /* Charts для очень маленьких экранов */
        .charts-grid {
            gap: 8px;
        }
        
        .chart-container {
            height: 160px !important;
            padding: 8px;
            min-height: 140px;
        }
        
        .chart-container h4 {
            font-size: 0.8rem;
            margin-bottom: 8px;
        }
        
        .chart-container canvas {
            max-height: 120px !important;
        }
        
        /* Balance actions для очень маленьких экранов */
        .balance-actions {
            gap: 8px;
            margin-top: 12px;
        }
        
        .balance-btn {
            width: 36px;
            height: 36px;
        }
        
        .balance-btn .material-symbols-outlined {
            font-size: 18px;
        }
        
        /* Beat cards для очень маленьких экранов */
        .beat-card img,
        .beat-cover img {
            height: auto !important;
            aspect-ratio: 1 / 1;
            object-fit: cover;
        }
        
        .beat-cover {
            aspect-ratio: 1 / 1;
        }
        
        .beat-info {
            padding: 8px 10px;
        }
        
        .beat-title {
            font-size: 0.9em;
            margin: 8px 0 4px 0;
        }
        
        .beat-user {
            font-size: 0.8em;
            padding: 0;
            margin: 0 0 8px 0;
        }
        
        .price-btn {
            padding: 6px 8px;
            font-size: 0.9em;
        }
        
        .favorite-btn {
            width: 32px;
            height: 32px;
        }
        
        .favorite-btn .material-symbols-outlined {
            font-size: 1.1em;
        }
    }


.favorite-btn.add-to-cart-async,
.edit-beat-btn.icon-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
}
@media (max-width: 600px) {
    .price-btn {
        height: 32px;
        min-width: 32px;
        font-size: 0.9em;
        padding: 0 8px;
    }
    .favorite-btn.add-to-cart-async,
    .edit-beat-btn.icon-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
    }
}

.withdraw-cancel-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #d32f2f;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-weight: 500;
    margin-left: 8px;
}
.withdraw-cancel-btn:hover {
    background: #ffebee;
    color: #b71c1c;
}

.favorite-btn.add-to-cart-async {
    background: none;
    border: 1px solid #ddd;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #000;
    position: relative;
    overflow: hidden;
}

.favorite-btn.add-to-cart-async:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

.favorite-btn.add-to-cart-async:active {
    transform: scale(0.95);
}

.favorite-btn.add-to-cart-async.added {
    background-color: #000;
    border-color: #000;
    color: white;
    animation: cartSuccess 0.6s ease;
}

.favorite-btn.add-to-cart-async.added .material-symbols-outlined {
    animation: iconBounce 0.6s ease;
}

@keyframes cartSuccess {
    0% {
        transform: scale(1);
        background-color: #f5f5f5;
        border-color: #ddd;
        color: #000;
    }
    50% {
        transform: scale(1.1);
        background-color: #000;
        border-color: #000;
        color: white;
    }
    100% {
        transform: scale(1);
        background-color: #000;
        border-color: #000;
        color: white;
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.beat-card img {
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    background:rgb(255, 255, 255);
    display: block;
    border: 1px solid #ffffff; /* Добавлена легкая обводка */
}

@media (max-width: 600px) {
    .price-btn {
        height: 32px;
        min-width: 32px;
        font-size: 0.9em;
        padding: 0 8px;
    }
    .favorite-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    .favorite-btn .material-symbols-outlined {
        font-size: 1.1em !important;
    }
}

@media (max-width: 480px) {
    .favorite-btn .material-symbols-outlined {
        font-size: 1em !important;
    }
}

/* Beatmaker dashboard — redesign overrides */
.profile-tabs { display: flex; gap: 10px; margin: 12px 0 16px 0; }
.profile-tabs .tab-link { padding: 8px 14px; border: none; border-radius: 10px; background: #f6f6f6; color: #111; text-decoration: none; }
.profile-tabs .tab-link.active { background: #111; color: #fff; }

/* Desktop dashboard grid */
.dashboard-grid.redesigned { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    grid-template-rows: auto auto;
    grid-auto-rows: minmax(120px, auto); 
    gap: 16px; 
}

.dashboard-grid.redesigned .balance-card { 
    grid-column: 1; 
    grid-row: 1 / span 2; 
}

.dashboard-grid.redesigned .profit-card { 
    grid-column: 2; 
    grid-row: 1; 
}

.dashboard-grid.redesigned .sales-card { 
    grid-column: 3; 
    grid-row: 1; 
}

.dashboard-grid.redesigned .premium-card { 
    grid-column: 2; 
    grid-row: 2; 
}

.dashboard-grid.redesigned .beats-card { 
    grid-column: 3; 
    grid-row: 2; 
}

.stat-card { border: none; border-radius: 12px; background: #fff; padding: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.stat-card h3 { margin: 0 0 8px 0; font-size: 0.95em; color: #666; }
.stat-number { font-size: 2rem; font-weight: 600; margin: 0; }
.balance-card { 
    padding: 24px; 
    background: #000;
    border-radius: 16px;
    color: #fff;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.balance-card h3 { 
    margin: 0 0 8px 0; 
    font-size: 0.9em; 
    color: rgba(255, 255, 255, 0.8); 
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}
.balance-amount { 
    font-size: 4rem; 
    line-height: 1; 
    color: #fff;
    font-weight: 700;
    margin: 0 0 8px 0;
    align-self: flex-start;
}
.cardholder-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: auto;
}
.mastercard-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 25px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.mastercard-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.mastercard-red {
    background: #666;
}
.mastercard-orange {
    background: #ccc;
    margin-left: -8px;
}
.balance-actions { 
    display: flex; 
    gap: 20px; 
    margin-top: auto;
    justify-content: center;
}
.balance-btn { 
    padding: 12px 20px;
    border-radius: 50px; 
    border: none; 
    background: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    color: #000;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    gap: 8px;
    min-width: 120px;
    white-space: nowrap;
}
.balance-btn .material-symbols-outlined {
    color: #000;
    font-size: 20px;
}
/* Make withdraw button width adapt to its text, keep buttons on one line */
.dashboard-grid.redesigned .balance-card .balance-actions { flex-wrap: nowrap; }
.dashboard-grid.redesigned .balance-card .balance-actions .balance-btn { width: auto; min-width: 0; }
.dashboard-grid.redesigned .balance-card .balance-actions .balance-btn span { white-space: nowrap; }
/* Buyer: make balance card narrower and rectangular */
#purchases .balance-card {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    padding: 24px 20px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#purchases .balance-card h3 {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

#purchases .balance-card .balance-amount {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1;
}

#purchases .balance-card .cardholder-name {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

#purchases .balance-card .balance-actions {
    margin-top: auto;
    gap: 12px;
}
/* Modern Charts Container */
.charts-container { 
    background: transparent; 
    border: none; 
    border-radius: 8px; 
    padding: 24px 0; 
    margin-top: 20px;
    /* Hide scrollbar */
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.charts-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.charts-container h3 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
}

/* Beautiful Chart Filters */
.chart-filters { 
    display: flex; 
    gap: 6px; 
    margin-bottom: 24px;
    padding: 4px;
    background: #f5f5f5;
    border-radius: 12px;
    width: fit-content;
}

.chart-filter-btn { 
    padding: 8px 16px; 
    border: none; 
    background: transparent; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    position: relative;
}

.chart-filter-btn:hover { 
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.chart-filter-btn.active { 
    background: #333;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modern Charts Grid */
.charts-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    /* Hide scrollbar */
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.charts-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.chart-container { 
    background: transparent; 
    border: none; 
    border-radius: 8px; 
    padding: 16px 0;
    transition: all 0.2s ease;
}

.chart-container:hover {
    background: transparent;
}

.chart-container h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container h4::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

.profit-chart {
    grid-column: 1 / -1;
    background: transparent;
}

.profit-chart h4::before {
    background: #666;
}

/* Bank-style History */
.dashboard-history { 
    margin-top: 24px; 
}

.dashboard-history > h3 {
    margin: 0 0 16px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
}

.history-spoiler { 
    margin: 0 0 12px 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    overflow: visible;
    transition: all 0.2s ease;
}

.history-spoiler:hover {
    background: transparent;
}

.history-spoiler > summary { 
    list-style: none; 
    cursor: pointer; 
    padding: 16px 0; 
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.history-spoiler > summary:hover {
    background: transparent;
    color: #1a1a1a;
}

.history-spoiler > summary::after {
    content: '';
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e") no-repeat center;
    background-size: 16px 16px;
    transition: transform 0.2s ease;
}

.history-spoiler[open] > summary::after {
    transform: rotate(180deg);
}

.history-card { 
    border: none;
    border-radius: 8px;
    padding: 0;
    background: transparent;
}

.history-list { 
    list-style: none; 
    margin: 0; 
    padding: 0;
}

/* Bank-style History Items */
.history-item { 
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: transparent;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item .date {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    min-width: 80px;
}

.history-item .description {
    flex: 1;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

.history-item .description a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.history-item .description a:hover {
    text-decoration: underline;
}

.amount-positive { 
    color: #059669;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.amount-positive::before {
    content: '↗';
    font-size: 1.1rem;
    color: #10b981;
}

.amount-negative { 
    color: #dc2626;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.amount-negative::before {
    content: '↙';
    font-size: 1.1rem;
    color: #ef4444;
}

/* Modern Status Badges */
.status-badge { 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending { 
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.status-badge.status-approved { 
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #10b981;
}

.status-badge.status-rejected { 
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #ef4444;
}
@media (max-width: 1000px) { 
    .dashboard-grid.redesigned { 
        grid-template-columns: 1fr 1fr; 
    } 
}
/* Mobile dashboard - 700px and below */
@media (max-width: 700px) { 
    .dashboard-grid.redesigned { 
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; 
        grid-template-rows: auto auto auto !important;
        gap: 12px !important;
    } 
    
    /* Balance card spans full width at top */
    .dashboard-grid.redesigned .balance-card {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        order: 1 !important;
    }
    
    /* Other cards in 2x2 grid below balance */
    .dashboard-grid.redesigned .profit-card {
        grid-column: 1 !important;
        grid-row: 2 !important;
        order: 2 !important;
    }
    
    .dashboard-grid.redesigned .sales-card {
        grid-column: 2 !important;
        grid-row: 2 !important;
        order: 3 !important;
    }
    
    .dashboard-grid.redesigned .premium-card {
        grid-column: 1 !important;
        grid-row: 3 !important;
        order: 4 !important;
    }
    
    .dashboard-grid.redesigned .beats-card {
        grid-column: 2 !important;
        grid-row: 3 !important;
        order: 5 !important;
    }
    
    .history-item { 
        grid-template-columns: 90px 1fr auto; 
    }
    .stat-card {
        box-shadow: none;
    }
}

/* Mobile dashboard - 480px and below */
@media (max-width: 480px) { 
    .dashboard-grid.redesigned { 
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; 
        grid-template-rows: auto auto auto !important;
        gap: 10px !important;
    } 
    
    /* Balance card spans full width at top */
    .dashboard-grid.redesigned .balance-card {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        order: 1 !important;
        padding: 16px !important;
        min-height: 120px !important;
    }
    
    /* Other cards in 2x2 grid below balance */
    .dashboard-grid.redesigned .profit-card {
        grid-column: 1 !important;
        grid-row: 2 !important;
        order: 2 !important;
        padding: 12px !important;
        min-height: 100px !important;
    }
    
    .dashboard-grid.redesigned .sales-card {
        grid-column: 2 !important;
        grid-row: 2 !important;
        order: 3 !important;
        padding: 12px !important;
        min-height: 100px !important;
    }
    
    .dashboard-grid.redesigned .premium-card {
        grid-column: 1 !important;
        grid-row: 3 !important;
        order: 4 !important;
        padding: 12px !important;
        min-height: 100px !important;
    }
    
    .dashboard-grid.redesigned .beats-card {
        grid-column: 2 !important;
        grid-row: 3 !important;
        order: 5 !important;
        padding: 12px !important;
        min-height: 100px !important;
    }
    
    .dashboard-grid.redesigned .stat-card h3 {
        font-size: 0.85em !important;
        margin-bottom: 4px !important;
    }
    .dashboard-grid.redesigned .stat-number {
        font-size: 1.6rem !important;
    }
    .balance-amount {
        font-size: 2rem !important;
    }
    /* Mobile Charts */
    .charts-container {
        padding: 16px;
        margin-top: 16px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .chart-filters {
        gap: 4px;
        padding: 3px;
    }
    
    .chart-filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* Mobile History */
    .history-spoiler > summary {
        padding: 12px 0;
        font-size: 0.95rem;
    }
    
    .history-item {
        padding: 12px 0;
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-item .date {
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .history-item .description {
        font-size: 0.9rem;
        order: -1;
    }
    
    .amount-positive,
    .amount-negative {
        font-size: 0.9rem;
        align-self: flex-end;
    }
}
/* оверлей */
#topUpModal {
  display: flex;
  position: fixed;
  
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.18);
  align-items: center;
  justify-content: center;
  /* без overflow */
}

/* сама карточка */
#topUpModal > div {
  background: #fff;
  border-radius: 8px;
  max-width: 420px;
  width: 92vw;
  max-height: 90vh;        /* ограничиваем по экрану */
  overflow-y: auto;        /* включаем скролл внутри */
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.topup-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.topup-status-paid {
  background: #ecfdf5;
  color: #047857;
}
.topup-status-pending {
  background: #fef3c7;
  color: #b45309;
}
.topup-status-failed {
  background: #fee2e2;
  color: #b91c1c;
}

/* Withdraw Modal Styles */
.withdraw-modal-content {
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.withdraw-modal-content::-webkit-scrollbar {
  width: 6px;
}

.withdraw-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.withdraw-modal-content::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.withdraw-form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.withdraw-method-form {
  display: none;
}

.withdraw-history-section {
  margin-top: 8px;
}

.withdraw-history-list {
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.withdraw-history-list::-webkit-scrollbar {
  width: 6px;
}

.withdraw-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.withdraw-history-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.withdraw-history-item {
  transition: background-color 0.2s;
}

.withdraw-history-item:hover {
  background: #f5f5f5 !important;
}

.withdraw-status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.withdraw-status-pending {
  background: #fef3c7;
  color: #b45309;
}

.withdraw-status-approved {
  background: #ecfdf5;
  color: #047857;
}

.withdraw-status-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.withdraw-btn-primary {
  transition: background-color 0.2s, transform 0.1s;
}

.withdraw-btn-primary:hover {
  background: #333 !important;
}

.withdraw-btn-primary:active {
  transform: scale(0.98);
}

.withdraw-btn-light:hover {
  background: #f5f5f5 !important;
}

.withdraw-cancel-btn:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

/* TopUp Modal Styles */
.topup-modal-content {
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.topup-modal-content::-webkit-scrollbar {
  width: 6px;
}

.topup-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.topup-modal-content::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.topup-history-section {
  margin-top: 8px;
}

.topup-history-list {
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.topup-history-list::-webkit-scrollbar {
  width: 6px;
}

.topup-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.topup-history-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.topup-history-item {
  transition: background-color 0.2s;
}

.topup-history-item:hover {
  background: #f5f5f5 !important;
}

/* Modal close button hover */
#withdrawModal button[onclick="closeWithdrawModal()"]:hover,
#topUpModal button[onclick="closeTopUpModal()"]:hover {
  background-color: #f5f5f5 !important;
}

/* SBP Bank Selection Modal */
#sbpBankModal button[onclick="closeSbpBankModal()"]:hover {
  background-color: #f5f5f5 !important;
}

.sbp-bank-btn:hover {
  background-color: #f5f5f5 !important;
  border-color: #bbb !important;
}

.sbp-bank-btn:active {
  background-color: #eee !important;
}

.add-to-cart-preview {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
}

