#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-y: auto;
    overflow-x: hidden;
}

#editBeatModal.show {
    display: flex;
}

.edit-beat-modal {
    background: var(--card);
    width: min(1080px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px var(--shadow-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    transition: background-color 0.25s ease;
}

.edit-beat-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 28px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    z-index: 2;
    flex-shrink: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.edit-beat-modal .modal-title {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.25s ease;
}

.edit-beat-modal .close-modal-btn {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.edit-beat-modal .close-modal-btn:hover {
    background-color: var(--button-hover-bg);
    color: var(--text);
}

.edit-beat-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.edit-beat-form.is-loading {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.edit-beat-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 28px;
    padding: 24px 28px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

#editBeatModal .edit-beat-section-label {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

#editBeatModal .edit-beat-meta-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
}

#editBeatModal .edit-beat-license-section,
#editBeatModal .edit-beat-audio-section {
    grid-column: 1 / -1;
}

#editBeatModal .edit-beat-license-hint {
    margin: 10px 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-muted);
}

#editBeatModal .edit-beat-license-hint a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#editBeatModal .upload-license-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
    margin: 0;
}

#editBeatModal .upload-license-card {
    background: var(--fill-secondary);
    border: var(--border-subtle, 0.5px solid var(--separator));
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-4, 16px);
}

#editBeatModal .upload-license-card--off {
    opacity: 0.42;
}

#editBeatModal .upload-license-card__check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent, #ffffff);
}

#editBeatModal .upload-license-card__price-wrap {
    min-height: 36px;
    padding: 0 12px;
    background: var(--fill-tertiary);
    border-radius: var(--radius-sm, 8px);
}

#editBeatModal .upload-license-card__price {
    width: 100%;
    padding: 8px 0;
    background: transparent;
}

#editBeatModal .upload-license-card__features {
    display: none;
}

#editBeatModal .upload-license-card__feat-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 4px;
}

#editBeatModal .edit-beat-audio-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#editBeatModal .edit-beat-audio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}

#editBeatModal .edit-beat-fields .form-input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--text);
    box-sizing: border-box;
}

#editBeatModal .field-hint {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.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;
    border: 1px solid var(--border);
    transition: border-color 0.25s ease;
}

.edit-beat-preview .preview-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color 0.25s ease;
}

.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: var(--text);
    line-height: 1.3;
    transition: color 0.25s ease;
}

.edit-beat-preview .preview-author {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.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: var(--text);
    color: var(--bg);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.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: var(--text);
    text-transform: none;
    transition: color 0.25s ease;
}

.edit-beat-fields input[type="text"],
.edit-beat-fields input[type="number"],
.edit-beat-fields input[type="url"],
.edit-beat-fields textarea {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease, color 0.25s ease;
}

.edit-beat-fields input[type="text"]:focus,
.edit-beat-fields input[type="number"]:focus,
.edit-beat-fields input[type="url"]:focus,
.edit-beat-fields textarea:focus {
    border-color: var(--text);
    outline: none;
    box-shadow: 0 0 0 2px var(--shadow-color);
}

.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: var(--text-muted);
    pointer-events: none;
    transition: color 0.25s ease;
}

.input-with-prefix input {
    padding-left: 32px;
}

.edit-form-errors {
    grid-column: 1 / -1;
    background: rgba(211, 47, 47, 0.1);
    color: #ff4444;
    border: 1px solid rgba(211, 47, 47, 0.3);
    padding: 12px 16px;
    font-size: 0.9rem;
    display: none;
    border-radius: 8px;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.edit-form-errors.show {
    display: block;
}

.edit-form-success {
    grid-column: 1 / -1;
    background: rgba(4, 120, 87, 0.1);
    color: #10b981;
    border: 1px solid rgba(4, 120, 87, 0.3);
    padding: 12px 16px;
    font-size: 0.9rem;
    display: none;
    border-radius: 8px;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.edit-form-success.show {
    display: block;
}

.edit-beat-fields .custom-dropdown {
    position: relative;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 8px;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 44px 0 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease;
}

.edit-beat-fields .custom-dropdown:focus-within {
    border-color: var(--text);
    box-shadow: 0 0 0 2px var(--shadow-color);
}

.edit-beat-fields .custom-dropdown .dropdown-input {
    width: 100%;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    border: none;
    background: transparent;
    transition: color 0.25s ease;
}

.edit-beat-fields .custom-dropdown .dropdown-input.empty {
    color: var(--text-muted);
}

.edit-beat-fields .custom-dropdown .dropdown-arrow {
    position: absolute;
    right: 16px;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.25s 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: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px var(--shadow-color);
    z-index: 10;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.edit-beat-fields .custom-dropdown.open .dropdown-panel {
    display: flex;
}

.edit-beat-fields .custom-dropdown .dropdown-search {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    padding: 8px 10px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: border-color 0.2s ease, background-color 0.25s ease, color 0.25s ease;
}

.edit-beat-fields .custom-dropdown .dropdown-search:focus {
    outline: none;
    border-color: var(--text);
}

.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: var(--text);
    transition: background-color 0.2s ease, color 0.25s ease;
}

.edit-beat-fields .custom-dropdown .dropdown-option:hover,
.edit-beat-fields .custom-dropdown .dropdown-option.active {
    background: var(--button-hover-bg);
}

.edit-beat-fields .file-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edit-beat-fields .file-field input[type="file"] {
    border: 1px dashed var(--border);
    padding: 12px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: border-color 0.2s ease, background-color 0.25s ease, color 0.25s ease;
}

.edit-beat-fields .file-field input[type="file"]:focus {
    outline: none;
    border-color: var(--text);
}

.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: var(--text-muted);
    transition: color 0.25s ease;
}

.edit-beat-fields .file-field .file-status--positive {
    color: var(--text);
    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: var(--text-muted);
    cursor: default;
    text-decoration: none;
    opacity: 0.5;
}

.edit-beat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px 24px;
    border-top: 1px solid var(--border);
    background: var(--card);
    gap: 16px;
    flex-shrink: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.edit-beat-actions .actions-right {
    display: flex;
    gap: 12px;
}

.ghost-button.delete-beat-modal-btn {
    color: #b3261e;
    background: #fef2f2;
}

.ghost-button.delete-beat-modal-btn:hover {
    background: #fde4e4;
}

.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: var(--fill-elevated);
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--fill-elevated);
  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%;
    }

    #editBeatModal .edit-beat-meta-grid {
        grid-template-columns: 1fr;
    }
}

@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;
    }

    }

html:has(body.modal-open) {
    overflow: hidden;
    padding-right: var(--scrollbar-compensate, 0px);
}

body.modal-open {
    overflow: hidden;
}

.profile-container {
    max-width: 1082px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-left, .content-area {
    width: 100%;
}

.profile-left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.profile-card {
    background: var(--card);
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: background-color 0.25s ease;
}

.profile-header {
    padding: 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
    border-radius: 50%;
    overflow: visible;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block;
}

html.dark .profile-avatar-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-image: var(--avatar-glow-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(30px) brightness(1.2);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.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: var(--button-hover-bg);
}

.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;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.social-btn:hover {
    background-color: var(--button-hover-bg);
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.social-btn:focus {
    outline: 2px solid var(--text-secondary);
    outline-offset: 2px;
}

.social-btn:focus:not(:focus-visible) {
    outline: none;
}

.social-btn i {
    font-size: 20px;
    line-height: 1;
    display: block;
    transition: color 0.2s ease;
}

.social-btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.profile-description {
    text-align: center;
    padding: 0;
    color: var(--text-muted);
    line-height: 1.6;
    transition: color 0.25s ease;
}

.report-btn {
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 0.95em;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.report-btn:hover {
    background: var(--button-hover-bg);
    color: var(--text);
}

.report-btn .material-symbols-outlined {
    font-size: 18px;
    color: inherit;
}

.report-btn-bottom {
    position: static;
    width: auto;
    height: auto;
    z-index: auto;
}

.edit-profile-btn, .follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  padding: 12px;
  border: 1px solid var(--border);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  background: var(--card);
  transition: all 0.2s ease;
  font-weight: 500;
  cursor: pointer;
  gap: 8px;
}

.edit-profile-btn:hover, .follow-btn:hover {
    background: var(--button-hover-bg);
}

.follow-btn.following {
    background-color: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.balance-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.balance-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text);
}

.balance-btn:hover {
    background: var(--button-hover-bg);
    border-color: var(--border-hover);
}

.balance-btn .material-symbols-outlined {
    font-size: 24px;
    color: var(--text);
}

.balance-btn.topup-btn {
    border-color: var(--text);
    color: var(--text);
}

.balance-btn.topup-btn:hover {
    background: var(--text);
    color: var(--bg);
}

.balance-btn.withdraw-btn {
    border-color: var(--text);
    color: var(--text);
}

.balance-btn.withdraw-btn:hover {
    background: var(--text);
    color: var(--bg);
}

#topUpModal,
#withdrawModal {
    background: color-mix(in srgb, var(--fill-grouped) 28%, transparent) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 1200 !important;
}

#topUpModal .topup-modal-content,
#withdrawModal .withdraw-modal-content {
    width: min(420px, 94vw) !important;
    height: fit-content !important;
    max-height: min(90vh, 720px) !important;
    min-height: 0 !important;
    padding: 20px 20px 16px !important;
    border: none !important;
    border-radius: 22px !important;
    background: var(--bg-secondary) !important;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18) !important;
    gap: 0 !important;
    overflow: visible !important;
}

#topUpModal h3,
#withdrawModal h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
}

#topUpModal button[onclick="closeTopUpModal()"],
#withdrawModal button[onclick="closeWithdrawModal()"] {
    border: none !important;
    background: var(--bg-secondary) !important;
}

#topUpModal button[onclick="closeTopUpModal()"]:hover,
#withdrawModal button[onclick="closeWithdrawModal()"]:hover {
    background: var(--button-hover-bg) !important;
}

#topUpModal #topUpAmount,
#withdrawModal #withdrawAmount,
#withdrawModal #paypalEmail,
#withdrawModal #withdrawCardNumber {
    min-height: 50px !important;
    border: none !important;
    border-radius: 12px !important;
    background: var(--bg-secondary) !important;
    color: var(--text) !important;
    box-shadow: none !important;
    outline: none !important;
}

#topUpModal #topUpAmount:focus,
#withdrawModal #withdrawAmount:focus,
#withdrawModal #paypalEmail:focus,
#withdrawModal #withdrawCardNumber:focus {
    outline: none !important;
    box-shadow: none !important;
}

#topUpModal .payment-method-option,
#withdrawModal .payment-method-option:not(.withdraw-method-option) {
    border: none !important;
    border-radius: 12px !important;
    background: var(--bg-secondary) !important;
    box-shadow: none !important;
    outline: none !important;
    transition: background-color 0.2s ease !important;
}

#topUpModal .payment-method-option:hover,
#withdrawModal .payment-method-option:not(.withdraw-method-option):hover {
    transform: none;
    box-shadow: none !important;
}

#topUpModal .payment-method-option:has(.payment-method-input:checked),
#withdrawModal .payment-method-option:not(.withdraw-method-option):has(.payment-method-input:checked) {
    background: color-mix(in srgb, var(--text) 10%, var(--bg-secondary)) !important;
    box-shadow: none !important;
    border: none !important;
}

#topUpModal #stripeTopUpBtn,
#topUpModal #ruSbpStartBtn,
#withdrawModal .withdraw-btn-primary {
  
}

#topUpModal #ru-step-done button,
#withdrawModal .withdraw-cancel-btn {
  border: none !important;
  background: var(--bg-secondary) !important;
}

#topUpModal #ru-step-done button:hover,
#withdrawModal .withdraw-cancel-btn:hover {
    background: var(--button-hover-bg) !important;
}

#withdrawModal #withdrawCalc {
    border: none !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--bg-secondary) 88%, transparent) !important;
    padding: 12px 14px !important;
}

#withdrawModal #withdrawCalc > div:last-child {
    margin-top: 10px !important;
    padding-top: 10px !important;
}

#topUpModal .history-toggle-btn,
#withdrawModal .history-toggle-btn {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

#topUpModal .topup-history-list,
#withdrawModal .withdraw-history-list {
    gap: 10px !important;
    padding-right: 2px !important;
}

#topUpModal .topup-history-item,
#withdrawModal .withdraw-history-item {
    border: none !important;
    border-radius: 12px !important;
    background: var(--bg-secondary) !important;
    padding: 12px 12px !important;
}

#topUpModal .topup-status,
#withdrawModal .withdraw-status-badge {
    border: none !important;
    border-radius: 999px !important;
}

.content-area {

    border-radius: 8px;
    box-shadow: none;
    transition: background-color 0.25s ease;
}

.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, minmax(0, 1fr));
        gap: 8px;
        margin-top: 4px;
        padding: 0 4px;
    }
    .beat-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }
    .beat-info {
        padding: 6px 0 0 0;
        min-height: auto;
        max-height: none;
    }
    .beat-text {
        margin-bottom: 8px;
        padding: 6px 0 8px 0;
    }
    .beat-title {
        font-size: 0.85em;
        min-height: 2.4em;
        max-height: 2.4em;
    }
    .beat-user {
        font-size: 0.75em;
        min-height: 24px;
        max-height: 24px;
    }
    .price-btn {
        height: 32px;
        min-width: 0;
        max-width: none;
        flex: 1;
        font-size: 0.85em;
        padding: 0 6px;
    }
    .favorite-btn,
    .favorite-btn.add-to-cart-async {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        flex-shrink: 0 !important;
    }
    .favorite-btn .material-symbols-outlined {
        font-size: 1.1em;
    }
    .beat-footer {
        gap: 4px;
    }
}

.beat-card {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, background-color 0.25s ease;
    font-family: var(--font-family);
    opacity: 0;
    transform: translateY(30px);
    animation: beat-fade-in 0.7s cubic-bezier(.4,0,.2,1) forwards;
    margin: 0 !important;
    padding: 8px;
    box-sizing: border-box;
}
.beat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.profile-container .beat-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}
@keyframes beat-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.beat-cover {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    overflow: visible;
}

.beat-cover img {
    position: relative;
    z-index: 1;
}
.beat-cover .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, #000000 55%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 2;
}
.beat-cover .play-button .bi.play-button-icon,
.beat-cover .play-button svg.lucide.play-button-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.beat-card .beat-user-avatar,
.beat-card .beat-user img {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    max-width: 22px;
    max-height: 22px;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border: none;
    background: var(--bg-secondary);
}
@media (max-width: 700px) {
    .beat-card .beat-cover img {
        aspect-ratio: 1/1;
        width: 100%;
        height: auto;
        border-radius: 18px;
    }
}
.beat-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.beat-card-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.beat-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.beat-title {
    font-size: 1em;
    font-weight: 500;
    margin: 0 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: var(--text);
    text-decoration: none;
    min-height: 2.6em;
    max-height: 2.6em;
    transition: color 0.25s ease;
}
.beat-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.93em;
    margin: 0;
    min-height: 28px;
    max-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s ease;
}
.beat-info {
    min-height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.beat-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.beat-card .price-btn {
    background-color: var(--card) !important;
    color: var(--text) !important;
}

.beat-card .price-btn:hover {
    background-color: color-mix(in srgb, var(--card) 55%, var(--fill-elevated)) !important;
    color: var(--text) !important;
    opacity: 1;
}

.price-btn {
    flex-grow: 1;
    flex-shrink: 1;
    padding: 8px 12px;
    background-color: var(--card) !important;
    text-align: center;
    text-decoration: none;
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.2s, color 0.25s ease;
    height: 36px;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.price-btn:hover {
    background-color: var(--button-hover-bg) !important;
}
.favorite-btn {
    background: var(--card) !important;
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
    color: var(--text) !important;
    box-sizing: border-box;
}
.favorite-btn:hover {
    background-color: var(--button-hover-bg) !important;
}
.favorite-btn.favorited {
    color: #e54b4b; 
}
.favorite-btn.add-to-cart-async {
  border: none !important;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  background: var(--card) !important;
  color: var(--text) !important;
  flex-shrink: 0;
}
.delete-beat-btn {
  background: var(--card);
  border: 1.5px solid var(--border);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border 0.15s, color 0.25s ease;
  z-index: 3;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0;
}
.delete-beat-btn:hover {
    background: var(--button-hover-bg);
    border: 1.5px solid var(--border-hover);
}

.sold-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
    padding: 8px 14px !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 1em;
    transition: background 0.15s, border 0.15s;
    white-space: nowrap;
    overflow: hidden;
    color: var(--text);
}
.sold-info:hover {
    background: var(--button-hover-bg) !important;
    border-color: var(--border-hover) !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: var(--text-muted); line-height: 1.5; }

.reviews-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.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: var(--text-muted);
    font-size: 0.9rem;
}

.review-button {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.review-button:hover {
    background-color: var(--text-secondary);
    color: var(--bg);
}

.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: var(--bg-secondary);
    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: var(--text);
    transition: color 0.25s ease;
}

.reviewer-details small {
    color: var(--text-muted);
    font-size: 0.75em;
    margin: 0;
    padding: 0;
    transition: color 0.25s ease;
}

.review-rating {
    margin-top: 2px;
    font-size: 0.92em;
    color: #f5b301;
}

.review-text {
    margin: 6px 0 0 0;
    font-size: 0.97em;
    color: var(--text);
    line-height: 1.4;
    transition: color 0.25s ease;
}

.no-reviews {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.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 var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.pagination-item:hover {
    background-color: var(--button-hover-bg);
    color: var(--text);
}

.pagination-item.active {
    background-color: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 8px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.reviews-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); transition: border-color 0.25s ease; }
.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;
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  transition: background 0.15s;
}
.review-plus-btn:hover { background: var(--button-hover-bg); }
.review-plus-btn svg { display: block; }

.reviews-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.review-plus-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s;
}

.overall-rating {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: #f5b301;
    display: flex;
    gap: 2px;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.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: var(--text);
    transition: color 0.25s ease;
}

.reviewer-details small {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.25s ease;
}

.review-rating {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.review-text {
    color: var(--text);
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
    transition: color 0.25s ease;
}

.no-reviews {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border);
    transition: border-color 0.25s ease;
}

.pagination-container {
    display: flex;
    gap: 8px;
}

.pagination-item {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.pagination-item:hover {
    background: var(--button-hover-bg);
    color: var(--text);
}

.pagination-item.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.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: var(--card); border-radius: 16px; max-width: 480px; width: 100%; padding: 32px; box-shadow: 0 4px 24px var(--shadow-color); transition: background-color 0.25s ease; }
.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: var(--text); transition: color 0.25s ease; }
.reviewer-info p { font-size: 0.95rem; color: var(--text-muted); margin: 0; transition: color 0.25s ease; }
.rating-section { margin-bottom: 24px; }
.rating-label { display: block; font-weight: 500; margin-bottom: 12px; color: var(--text); transition: color 0.25s ease; }
.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: var(--border); 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: var(--text); transition: color 0.25s ease; }

.review-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

.cancel-button { color: var(--text-muted); text-align: center; text-decoration: none; font-size: 0.95rem; padding: 8px; background: none; border: none; cursor: pointer; transition: color 0.25s ease; }
.cancel-button:hover { color: var(--text); }
.error-message { color: #dc3545; font-size: 0.875rem; margin-top: 8px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.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,
.pro-analytics-upsell {
    grid-column: span 4;
}

.pro-analytics-upsell {
    margin-top: 20px;
    padding: 28px 24px;
    border-radius: 14px;
    text-align: center;
    background: var(--bg-secondary);

}

.pro-analytics-upsell h3 {
    margin: 0 0 10px;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.pro-analytics-upsell p {
    margin: 0 0 18px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}

.pro-analytics-upsell__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 980px;
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity 0.2s ease;
}

.pro-analytics-upsell__cta:hover {
    opacity: 0.88;
}
.stat-card {
    background: var(--bg-secondary) !important;
    border: none !important;
    border-radius: 8px;
    text-align: left;
    grid-column: span 1;
    box-shadow: none;
    min-height: 110px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--text) !important;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.stat-card h3 {
    font-size: clamp(0.68rem, 1.6vw, 0.78rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted) !important;
    margin: 0 0 8px;
    transition: color 0.25s ease;
}

.stat-card .stat-number {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text) !important;
    margin: 0;
    transition: color 0.25s ease;
}

.stat-card h4,
.stat-card p,
.stat-card span,
.stat-card div {
    color: var(--text) !important;
    transition: color 0.25s ease;
}

.stat-card .balance-amount {
    color: var(--text) !important;
}

.stat-card .cardholder-name {
    color: var(--text-muted) !important;
    font-size: clamp(0.68rem, 1.4vw, 0.75rem);
    letter-spacing: 0.12em;
}

.buyer-dashboard .action-card {
    text-decoration: none;
    gap: 12px;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
}

.buyer-dashboard .action-card:hover,
.buyer-dashboard .action-card:focus {
    text-decoration: none;
}

.buyer-dashboard .action-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.buyer-dashboard .action-card-icon i {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buyer-dashboard .action-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}
.buyer-dashboard .balance-card {
    grid-column: span 2;
}

.buyer-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
}

.buyer-dashboard .action-card {
    min-height: 88px;
}

.profile-edit-card {
    text-decoration: none;
    margin-top: 16px;
    gap: 12px;
    align-items: center;
    flex-direction: row;
    cursor: pointer;
}

.profile-edit-card:hover,
.profile-edit-card:focus {
    text-decoration: none;
}

.profile-edit-card .action-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.profile-edit-card .action-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.charts-container {
    margin-top: 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.charts-toolbar {
    margin-bottom: 20px;
}

.charts-toolbar-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: visible;
}

.charts-toolbar-row::-webkit-scrollbar {
    display: none;
}

.chart-range-active-hint {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}

.chart-range-dropdown {
    position: relative;
    flex-shrink: 0;
}

.chart-range-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.chart-range-trigger:hover,
.chart-range-dropdown.is-open .chart-range-trigger {
    background: var(--card);
    border-color: var(--text-muted);
}

.chart-range-trigger .bi-chevron-down,
.chart-range-trigger svg.lucide-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.chart-range-dropdown.is-open .chart-range-trigger .bi-chevron-down,
.chart-range-dropdown.is-open .chart-range-trigger svg.lucide-chevron-down {
    transform: rotate(180deg);
}

.chart-range-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 200;
    min-width: 260px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.chart-range-dropdown.is-open .chart-range-menu {
    display: block;
}

.chart-range-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, 0.4);
}

.chart-range-backdrop.is-visible {
    display: block;
}

body > .chart-range-menu.is-open {
    display: block;
}

.chart-date-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-date-form__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-date-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.chart-date-label {
    font-size: clamp(0.68rem, 1.5vw, 0.78rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.chart-date-input {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.82rem;
}

.chart-date-submit {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chart-date-submit:hover {
    opacity: 0.92;
}

.chart-date-reset {
    font-size: clamp(0.68rem, 1.5vw, 0.78rem);
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chart-date-reset:hover {
    color: var(--text);
}

.chart-filters {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  padding: 3px;
  background: var(--bg-secondary);
}

.chart-filter-btn,
.chart-metric-btn {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.chart-filter-btn:hover {
    background: var(--button-hover-bg);
}

.chart-filter-btn.active {
    background: var(--text);
    color: var(--bg);
}

.chart-type-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-secondary);
  padding: 3px;
  border-radius: 999px;
  box-sizing: border-box;
}

.chart-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow: hidden;
}

.chart-type-btn:hover {
    color: var(--text);
    border-radius: 999px;
}

.chart-type-btn.active {
    background: var(--card);
    color: var(--text);
    border-radius: 999px;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.chart-type-btn .bi, .chart-type-btn svg.lucide {
    font-size: 16px;
}

.products-filter,
.sales-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.profile-container .content-area .products-filter,
.profile-container .content-area .sales-filter {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

#sales .sales-items-strip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-x: visible;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0 8px;
    align-items: stretch;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#sales .sales-items-strip > p {
    margin: 0.75rem 0 0;
}

#sales .sales-hit-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px 16px;
    width: 100%;
    padding: 10px 0;
    border: none;
    background: transparent;
    box-sizing: border-box;
}

#sales .sales-hit-row__cover {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    line-height: 0;
}

#sales .sales-hit-row__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#sales .sales-hit-row__main {
    flex: 1;
    min-width: 0;
}

#sales .sales-hit-row__title {
    display: block;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#sales .sales-hit-row__title:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

#sales .sales-hit-row__price {
    flex-shrink: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

#sales .sales-hit-row__detail {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: clamp(0.68rem, 1.5vw, 0.78rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#sales .sales-hit-row__detail:hover {
    background: var(--button-hover-bg);
    border-color: var(--border-hover);
}

@media (max-width: 480px) {
    #sales .sales-hit-row {
        flex-wrap: wrap;
    }
    #sales .sales-hit-row__detail {
        width: 100%;
        margin-left: calc(48px + 12px);
    }
}

.ph-download-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 1.75rem);
    box-sizing: border-box;
    font-family: var(--font-family);
}

.ph-download-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.16);
}

.ph-download-modal__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(36rem, calc(100vw - 2rem));
    padding: clamp(1.5rem, 4.5vw, 2.15rem) clamp(1.35rem, 4vw, 1.85rem) clamp(1.4rem, 4vw, 1.9rem);
    background: var(--card);
    color: var(--text);
    box-sizing: border-box;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(0.72rem, 1.75vw, 0.85rem);
    line-height: 1.45;
    transition: background-color 0.25s ease, color 0.25s ease;
    box-shadow: 0 12px 40px var(--shadow-color);
}

.ph-download-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    float: none;
    margin: 0;
    padding: 0.2rem 0.45rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.ph-download-modal__close:hover,
.ph-download-modal__close:focus {
    color: var(--text);
}

.ph-download-modal__hero {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
    padding-right: 1.75rem;
}

.ph-download-modal__cover {
    width: 5.25rem;
    height: 5.25rem;
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, background-color 0.25s ease;
}

.ph-download-modal__cover--hidden {
    display: none;
}

.ph-download-modal__meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ph-download-modal__kind {
    margin: 0;
    font-size: 0.72em;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.12em;
}

.ph-download-modal__title {
    margin: 0;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    font-weight: 500;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0.04em;
    line-height: 1.35;
    word-break: break-word;
}

.ph-download-modal__owner {
    margin: 0;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.05em;
    align-self: flex-start;
    transition: color 0.15s ease;
}

.ph-download-modal__owner:hover {
    color: var(--text);
}

.ph-download-modal__date {
    margin: 0.15rem 0 0;
    font-size: 0.78em;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.ph-download-modal__subtitle {
    margin: 0 0 1rem;
    text-align: left;
    font-size: 0.75em;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    line-height: 1.5;
}

.ph-download-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.ph-download-modal__action {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.45rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.ph-download-modal__action:hover {
    color: var(--text-secondary);
}

.ph-download-modal__action-icon {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--text-muted);
    text-decoration: none;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@media (max-width: 480px) {
    .ph-download-modal__hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-right: 0;
    }

    .ph-download-modal__meta {
        align-items: center;
    }

    .ph-download-modal__title {
        text-align: center;
    }

    .ph-download-modal__subtitle {
        text-align: center;
    }

    .ph-download-modal__actions {
        align-items: center;
    }

    .ph-download-modal__action {
        justify-content: center;
        text-align: center;
    }

    .ph-download-modal__owner {
        align-self: center;
    }
}

.filter-toggle-btn {
  padding: 7px 22px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(0.7rem, 1.5vw, 0.82rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-toggle-btn:hover {
    background: var(--button-hover-bg);
    border-color: var(--border-hover);
}

.filter-toggle-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.charts-container .charts-grid-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-range-hint {
    margin: 0;
    font-size: clamp(0.68rem, 1.5vw, 0.78rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: center;
}

.chart-container {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    border: none;
    height: 210px !important;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: background-color 0.25s ease;
    box-shadow: none;
}

.chart-container__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.chart-container__head h4 {
    margin: 0;
    text-align: left;
    font-size: clamp(0.68rem, 1.6vw, 0.78rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.chart-container h4 {
    margin: 0 0 12px 0;
    text-align: left;
    font-size: clamp(0.68rem, 1.6vw, 0.78rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.chart-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chart-expand-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.chart-container.is-chart-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10050;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    margin: 0;
    padding: 20px 24px 28px;
    border-radius: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transform: none !important;
}

.chart-container.is-chart-fullscreen .apex-chart-container {
    flex: 1;
    min-height: 0;
}

.chart-container.is-chart-fullscreen .apex-chart-container canvas {
    max-height: none !important;
}

body.chart-fullscreen-open {
    overflow: hidden;
}

.chart-container canvas {
    flex: 1;
    max-height: 160px !important;
    width: 100% !important;
}

.follow-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1200;
}

.follow-modal.is-open {
    display: flex;
}

.follow-modal-card {
    width: min(400px, calc(100vw - 32px));
    max-height: min(72vh, 560px);
    overflow-y: auto;
    background: var(--card);
    border-radius: 24px;
    padding: 18px 18px 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
    box-sizing: border-box;
    scrollbar-width: thin;
}

.follow-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.follow-list-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.follow-modal-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.follow-modal-close:hover,
.follow-modal-close:focus {
    background: var(--button-hover-bg);
    color: var(--text);
}

.follow-list-body {
    min-height: 48px;
}

.follow-list-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.follow-list-item a,
.follow-list-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
    border-radius: 14px;
    transition: background-color 0.2s ease, color 0.25s ease;
}

.follow-list-item a:hover,
.follow-list-link:hover {
    background-color: var(--button-hover-bg);
}

.follow-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.follow-list-username {
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-list-empty {
    margin: 0;
    padding: 24px 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.close-modal-btn { color: var(--text-muted); border: none; background: none; cursor: pointer; transition: color 0.25s ease; }
.close-modal-btn:hover, .close-modal-btn:focus { color: var(--text); text-decoration: none; }

.purchases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
.purchase-card { border: 1px solid var(--border); border-radius: 8px; background: var(--card); overflow: hidden; transition: background-color 0.25s ease, border-color 0.25s ease; }
.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; color: var(--text); transition: color 0.25s ease; }
.purchase-user { font-size: 0.8em; color: var(--text-muted); margin: 4px 0; transition: color 0.25s ease; }
.download-link { display: block; margin-top: 10px; font-weight: 500; }

.subscription-card {
    background: var(--card);
    border: 2px solid var(--border);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.subscription-card h3 {
    color: var(--text);
    transition: color 0.25s ease;
}

.subscription-card p {
    margin: 8px 0;
}

@media (max-width: 500px) {
        }

@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-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: 10px !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;
  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-grid:not(.redesigned), .charts-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        margin-top: 16px;
        align-items: center;
        width: 100%;
        
    }
    
    
    .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%;
        
        min-width: 0;
        padding: 20px 12px;
        border-radius: 18px;
        min-height: 120px;
        box-shadow: 0 2px 12px var(--shadow-color);
        background: var(--card);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
    }
    .stat-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .stat-card p,
    .stat-card .stat-number {
        font-size: 1.35rem !important;
        margin: 0;
        font-weight: 700;
        line-height: 1.15;
    }
    .dashboard-grid.redesigned .stat-card:not(.balance-card) {
        min-height: 88px !important;
        padding: 12px 10px !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .dashboard-grid.redesigned .stat-card h3 {
        font-size: 0.78rem !important;
        margin-bottom: 6px !important;
    }
    .dashboard-grid.redesigned .balance-card {
        text-align: left !important;
        align-items: flex-start !important;
    }
    .charts-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        align-items: stretch !important;
    }
    .charts-toolbar {
        width: 100% !important;
        max-width: 100% !important;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .charts-toolbar-row {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: visible !important;
        width: 100% !important;
    }
    .bm-home .charts-toolbar-row {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }
    .charts-toolbar-row::-webkit-scrollbar {
        display: none;
    }
    .charts-toolbar-row:first-child .chart-filters {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bm-home .charts-toolbar-row:first-child .chart-filters,
    .bm-home .charts-toolbar-row .chart-filters {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
    }
    .charts-toolbar-row:first-child .chart-filters::-webkit-scrollbar {
        display: none;
    }
    .charts-toolbar-row:first-child .chart-range-dropdown {
        margin-right: auto;
    }
    .chart-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding: 3px !important;
    }
    .chart-filter-btn {
        font-size: 0.72rem !important;
        padding: 6px 8px !important;
    }
    .chart-metric-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        border-radius: 14px !important;
        padding: 6px !important;
    }
    .chart-metric-btn {
        font-size: 0.74rem !important;
        padding: 6px 8px !important;
    }
    .chart-range-dropdown,
    .chart-type-toggle {
        align-self: center;
        flex-shrink: 0;
    }
    .chart-range-trigger {
        font-size: 0.72rem;
        padding: 6px 10px;
    }
    .charts-container .chart-container-single {
        min-height: 300px !important;
        height: auto !important;
        max-width: 100% !important;
        background: var(--card) !important;
        border: 1px solid color-mix(in srgb, var(--text) 8%, transparent) !important;
        padding: 12px !important;
    }
    .chart-container {
        width: 100%;
        
        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;
    }
    
    .profile-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        justify-content: stretch !important;
        overflow-x: visible !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .profile-tabs::-webkit-scrollbar {
        display: none;
    }
    .profile-tabs .tab-link {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        background: var(--bg-secondary) !important;
        border: none !important;
        border-radius: 12px !important;
        color: var(--text) !important;
        font-weight: 500 !important;
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
        margin: 0 !important;
        box-shadow: none !important;
        position: relative;
        white-space: nowrap !important;
        transition: background-color 0.18s ease, color 0.18s ease;
        outline: none;
    }
    .profile-tabs .tab-link.active {
        background: var(--text) !important;
        color: var(--bg) !important;
    }
    .profile-tabs .tab-link.active::after {
        display: none !important;
    }
    .profile-tabs .tab-link:not(.active):hover {
        color: var(--text) !important;
        background: color-mix(in srgb, var(--bg-secondary) 70%, var(--text) 8%) !important;
    }
    .profile-grid > .profile-tabs {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-bottom: 0 !important;
    }
    .tab-content {
        display: none;
        padding: 10px 12px 16px;
        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-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: 2rem;
    }
    
    
    .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 {
        gap: 8px;
        margin-top: 12px;
    }
    
    .balance-btn {
        width: 36px;
        height: 36px;
    }
    
    .balance-btn .material-symbols-outlined {
        font-size: 18px;
    }
    
    
    .beat-card .beat-cover 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 .bi,     .favorite-btn svg.lucide {
        font-size: 1.1em;
    }
}

.beat-card .icon-btn {
  background: var(--card);
  border: none;
  color: var(--text);
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: none;
}
.beat-card .icon-btn:hover {
    background-color: var(--button-hover-bg);
}

@media (max-width: 600px) {
    .beat-card .icon-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1em !important;
    }
    .beat-card .icon-btn .bi,     .beat-card .icon-btn svg.lucide {
        font-size: 1.1em !important;
    }
}

@media (max-width: 480px) {
    .beats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 4px;
        padding: 0 4px;
    }
    
    .beat-card {
        padding: 8px;
    }

    .beat-card .beat-cover img { display: block; }

    .beat-info {
        padding: 4px 0 0 0;
        min-height: auto;
        max-height: none;
    }
    
    .beat-text {
        margin-bottom: 6px;
        padding: 4px 0 6px 0;
    }

    .beat-title {
        font-size: 0.8em;
        min-height: 2.2em;
        max-height: 2.2em;
    }

    .beat-user {
        font-size: 0.7em;
        min-height: 20px;
        max-height: 20px;
    }

    .price-btn {
        padding: 4px 5px;
        font-size: 0.8em;
        height: 28px;
        min-width: 0;
        max-width: none;
        flex: 1;
    }

    .favorite-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        flex-shrink: 0 !important;
    }
    
    .beat-footer {
        gap: 4px;
    }

    .favorite-btn .bi,     .favorite-btn svg.lucide {
        font-size: 1em;
    }

    .play-button {
        width: 45px;
        height: 45px;
    }

    .play-button .bi.play-button-icon,
    .play-button svg.lucide.play-button-icon {
        font-size: 1.35rem;
    }
    
    .beat-card .icon-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 1em !important;
    }
    .beat-card .icon-btn .bi,     .beat-card .icon-btn svg.lucide {
        font-size: 1em !important;
    }
}

.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); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.modal-content {
    background-color: var(--card);
    padding: 20px;
    border: 1px solid var(--border);
    width: 80%; 
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.25s ease;
}

.modal-title {
    font-size: 1.5em;
    margin: 0;
    color: var(--text);
    transition: color 0.25s ease;
}

.close-modal-btn {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.25s ease;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 10px 0;
}

.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: var(--text-muted);
    transition: color 0.25s ease;
}

.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 var(--border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.25s ease;
    font-size: 1em;
    color: var(--text);
}

.modal-content .product-type-select input[type="radio"] {
    display: none;
}

.modal-content .product-type-select input[type="radio"]:checked + label {
    background-color: var(--bg-secondary);
    border-color: var(--text);
    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 var(--border);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1em;
    box-sizing: border-box;
    background: var(--card);
    color: var(--text);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.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 var(--border);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1em;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    position: relative;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.modal-content .dropdown-input:focus {
    outline: none;
    border-color: var(--text);
}

.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: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.modal-content .dropdown-options.show {
    display: block;
}

.modal-content .dropdown-search {
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
    font-family: var(--font-family);
    font-size: 0.9em;
    outline: none;
    background: var(--card);
    color: var(--text);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.modal-content .dropdown-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-content .dropdown-option:hover {
    background-color: var(--button-hover-bg);
}

.modal-content .dropdown-option.selected {
    background-color: var(--bg-secondary);
}

.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: 1px solid var(--text);
  font-family: var(--font-family);
  font-size: 1.1em;
  background: var(--card);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.modal-content .btn-primary {
    background: var(--text);
    color: var(--bg);
}

.modal-content .btn-secondary {
    background: var(--card);
    color: var(--text);
}

@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;
    }
}

@media (max-width: 768px) {
                                            .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 var(--border);
    font-size: 1.08em;
    background: transparent;
    box-sizing: border-box;
    gap: 18px;
    transition: border-color 0.25s ease;
}

.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: var(--button-hover-bg);
}
.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 .beat-cover 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: 0px 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;
    }
}

.profile-container .content-area .beats-grid.beats-grid-public {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    justify-content: stretch;
    justify-items: stretch;
    padding: 0;
    box-sizing: border-box;
}

.profile-container .content-area .beats-grid.beats-grid-public .beat-card-inner {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 1200px) {
    .profile-container .content-area .beats-grid.beats-grid-public {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 12px;
        max-width: none;
    }
}

@media (max-width: 900px) {
    .profile-container .content-area .beats-grid.beats-grid-public {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }
}

@media (max-width: 600px) {
    .profile-container .content-area .beats-grid.beats-grid-public {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 8px;
        max-width: none;
        margin-top: 0.35rem;
    }
}

@media (max-width: 480px) {
    .profile-container .content-area .beats-grid.beats-grid-public {
        gap: 6px 8px;
    }
}

.profile-container .content-area .tab-content:has(.beats-grid.beats-grid-public) {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 600px) {
    .profile-container .content-area .tab-content:has(.beats-grid.beats-grid-public) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

    .profile-container {
        max-width: 1000px;
        margin: 40px auto;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    
    .profile-tabs {
        display: flex;
        gap: 24px;
        margin-bottom: 0;
        justify-content: center; 
    }
    .tab-link {
        background: none !important;
        border: none !important;
        border-radius: 8px !important;
        color: var(--text) !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: var(--text) !important;
    }
    .tab-link.active::after {
        content: '';
        display: block;
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 0;
        height: 2.5px;
        background: var(--text);
        border-radius: 2px;
    }
    .tab-link:not(.active):hover {
        color: var(--text-muted) !important;
    }
    .tab-content {
        display: none;
   
        padding: 0 24px 24px 24px;
    }
    .tab-content.active {
        display: block;
        margin-top: 0;
    }
    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .stat-card {
        background: var(--card);
        padding: 24px;
        border-radius: 8px;
        border: 1px solid var(--border);
        text-align: center;
        transition: background-color 0.25s ease, border-color 0.25s ease;
    }
.stat-card h3 {
    margin: 0 0 6px 0;
    font-size: 0.9em;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.25s ease;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
}
.stat-date {
    font-size: 0.95rem;
    color: var(--text-muted) !important;
    margin: 4px 0 0 0;
    font-weight: 400;
}
    .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;
    }

    
    .beat-card {

      
        border-radius: 12px;
        overflow: hidden;
        transition: background-color 0.25s ease, border-color 0.25s ease;
    }
    .beat-card .beat-cover img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    .beat-info { padding: 12px; }
    .beat-title { font-weight: 500; color: var(--text); transition: color 0.25s ease; }
    .beat-price { color: var(--text-muted); transition: color 0.25s ease; }
    
    
    @media (max-width: 900px) {
        .profile-grid {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }
        
                
        .profile-card {
            order: 1;
            margin-top: 40px;
            padding: 0 16px 16px 16px;
        }
        
                
        .beats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }
        
                
            }
    
    @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 .beat-cover 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-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: flex-start;
            text-align: left;
        }
        
        .stat-card h3 {
            font-size: 0.85rem;
        }
        
        .stat-card p {
            font-size: 2rem;
        }
        
        
        .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 {
            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 {
            gap: 12px;
            margin-top: 16px;
        }
        
        .balance-btn {
            width: 40px;
            height: 40px;
        }
        
        .balance-btn .material-symbols-outlined {
            font-size: 20px;
        }
        
        
        .profile-socials {
            gap: 10px;
            margin-top: 12px;
        }
        
        .social-btn {
            width: 36px;
            height: 36px;
        }
        
        .social-btn i {
            font-size: 18px;
        }
        
        .edit-profile-btn, .follow-btn {
            max-width: 100%;
            padding: 10px 20px;
            font-size: 0.95rem;
        }
        
        
        .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-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-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-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;
        }
        
                
                
                
                
                
                
        
        .stat-card {
            padding: 12px;
            min-height: 105px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            text-align: left;
        }
        
                
                
        
                
        .chart-container {
            height: 160px !important;
            padding: 8px;
            min-height: 140px;
        }
        
                
                
        
                
                
                
        
                
                
                
                
                
                
                
        .favorite-btn .material-symbols-outlined {
            font-size: 1.1em;
        }
    }

.favorite-btn.add-to-cart-async,
.edit-beat-btn.icon-btn,
.beat-youtube-icon-btn.icon-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
}

.beat-youtube-icon-btn {
  position: relative;
  color: #ff0000;
  text-decoration: none;
}

.beat-youtube-icon-btn:hover {
  color: #cc0000;
}

.beat-youtube-icon-btn.is-published {
  color: #ff0000;
  cursor: pointer;
}

.beat-youtube-icon-btn__check {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.beat-youtube-icon-btn.is-loading {
  opacity: 0.55;
  cursor: wait;
}

.bm-table__actions .beat-youtube-icon-btn {
  position: relative;
}
@media (max-width: 600px) {
    .price-btn {
        height: 32px;
        min-width: 0;
        max-width: none;
        flex: 1;
        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;
        flex-shrink: 0;
    }
}

.withdraw-cancel-btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 1em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.25s ease;
  font-weight: 500;
  margin-left: 8px;
}
.withdraw-cancel-btn:hover {
    background: var(--button-hover-bg);
    color: var(--text);
    border-color: var(--border);
}

.cancel-withdrawal-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.cancel-withdrawal-modal__dialog {
    width: min(100%, 380px);
    padding: 24px 20px;
    border-radius: 16px;
    background: var(--card);
    color: var(--text);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.cancel-withdrawal-modal__text {
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.45;
    text-align: center;
}

.cancel-withdrawal-modal__status {
    margin: 0 0 12px;
    color: #d32f2f;
    font-size: 0.92rem;
    text-align: center;
}

.cancel-withdrawal-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cancel-withdrawal-modal__confirm,
.cancel-withdrawal-modal__close {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.cancel-withdrawal-modal__confirm {
    background: var(--text);
    color: var(--bg);
}

.cancel-withdrawal-modal__close {
    background: var(--bg-secondary);
    color: var(--text);
}

@media (min-width: 480px) {
    .cancel-withdrawal-modal__actions {
        flex-direction: row;
    }

    .cancel-withdrawal-modal__confirm,
    .cancel-withdrawal-modal__close {
        flex: 1 1 0;
        width: auto;
    }
}

@keyframes cartSuccess {
    0% {
        transform: scale(1);
        background-color: var(--bg-secondary);
        border-color: var(--border);
        color: var(--text);
    }
    50% {
        transform: scale(1.1);
        background-color: var(--text);
        border-color: var(--text);
        color: var(--bg);
    }
    100% {
        transform: scale(1);
        background-color: var(--text);
        border-color: var(--text);
        color: var(--bg);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.beat-card .beat-cover 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;
   
}

@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;
    }
}

.profile-tabs { display: flex; gap: 9px; margin: 0; }
.profile-tabs .tab-link { padding: 8px 14px; border: none; border-radius: 10px; background: var(--bg-secondary); color: var(--text); text-decoration: none; transition: background-color 0.25s ease, color 0.25s ease; }
.profile-tabs .tab-link.active { background: var(--text); color: var(--bg); }

.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: var(--card); padding: 16px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; transition: background-color 0.25s ease; }
.stat-card h3 { margin: 0 0 8px 0; font-size: 0.95em; color: var(--text-muted); transition: color 0.25s ease; }
.stat-number { font-size: 2.5rem; font-weight: 600; margin: 0; }
.balance-card { 
    padding: 24px; 
    background: var(--fill-grouped);
    border-radius: 16px;
    color: var(--fill-elevated);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    text-align: center;
    align-items: center;
}
.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: var(--fill-elevated);
    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: var(--label-secondary);
}
.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: 1px solid var(--border) !important;
  background: var(--card) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text) !important;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  gap: 8px;
  min-width: 120px;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.balance-btn .material-symbols-outlined {
    color: var(--text) !important;
    font-size: 20px;
    transition: color 0.25s ease;
}
.balance-btn:hover {
    background: var(--button-hover-bg) !important;
    border-color: var(--border) !important;
}

.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; }

#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;
}

.charts-container { 
    background: transparent; 
    border: none; 
    border-radius: 8px; 
    padding: 10px 5px; 
    margin-top: 20px;
    overflow: visible;
}

.charts-container::-webkit-scrollbar {
    display: none; 
}

.charts-container h3 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.25s ease;
}

.chart-container .apex-chart-container {
    flex: 1;
    width: 100% !important;
    min-height: 140px;
    position: relative;
    overflow: visible;
}

.chart-container .apexcharts-canvas {
    overflow: visible !important;
}

.chart-container .apexcharts-xaxis {
    padding-bottom: 0 !important;
}

.chart-container .apexcharts-svg {
    overflow: visible !important;
}

.chart-skeleton {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px 0;
    height: 200px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.skeleton-line {
    height: 20px;
    background: linear-gradient(90deg, 
        var(--bg-secondary) 0%, 
        var(--border) 50%, 
        var(--bg-secondary) 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    opacity: 0.6;
}

.skeleton-line:nth-child(1) {
    width: 100%;
}

.skeleton-line:nth-child(2) {
    width: 85%;
    margin-left: auto;
}

.skeleton-line:nth-child(3) {
    width: 70%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.apex-chart-container {
    position: relative;
}

.chart-profit {
}

.chart-profit h4::before {
    background: var(--text);
}

.dashboard-history { 
    margin-top: 24px; 
}

.dashboard-history > h3 {
    margin: 0 0 16px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.25s ease;
}

.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: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease, color 0.25s ease;
}

.history-spoiler > summary:hover {
    background: transparent;
    color: var(--text);
}

.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-card { 
    border: none;
    border-radius: 8px;
    padding: 0;
    background: transparent;
}

.history-item { 
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease, border-color 0.25s ease;
}

.history-item:hover {
    background: transparent;
}

.history-item .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 80px;
    transition: color 0.25s ease;
}

.history-item .description {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    transition: color 0.25s ease;
}

.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;
}

.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; 
    } 
}

@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;
    } 
    
    
    .dashboard-grid.redesigned .balance-card {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        order: 1 !important;
    }
    
    
    .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;
    }

    .dashboard-grid.redesigned.buyer-dashboard .balance-card {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }

    .dashboard-grid.redesigned.buyer-dashboard .action-card {
        grid-column: span 1 !important;
        min-height: 88px;
    }
    
    .history-item { 
        grid-template-columns: 90px 1fr auto; 
    }
    .stat-card {
        box-shadow: none;
    }
}

@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;
    } 
    
    
    .dashboard-grid.redesigned .balance-card {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        order: 1 !important;
        padding: 16px !important;
        min-height: 120px !important;
    }
    
    
    .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: 2rem !important;
    }
    .balance-amount {
        font-size: 2rem !important;
    }
    
    .charts-container {
        padding: 0;
        margin-top: 16px;
    }

    .charts-toolbar-row {
        gap: 8px;
    }

    .chart-range-trigger {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .chart-filter-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .filter-toggle-btn {
        padding: 6px 16px;
        font-size: 0.78rem;
    }
    
    
    .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);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  
}

#topUpModal > div {
  background: var(--card) !important;
  border-radius: 12px;
  max-width: 440px;
  width: 94vw;
  max-height: 92vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
  box-sizing: border-box;  
}

#withdrawModal {
  display: flex;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.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: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.topup-status-pending {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.topup-status-failed {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.withdraw-modal-content {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.withdraw-modal-content::-webkit-scrollbar {
  width: 6px;
}

.withdraw-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.withdraw-modal-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
  transition: background-color 0.25s ease;
}

.withdraw-form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#withdrawModal .payment-section {
  padding-top: 0;
  border-top: none;
}

#withdrawModal .withdraw-payment-methods-list.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

#withdrawModal .withdraw-method-option.payment-method-option {
  display: block;
  cursor: pointer;
  position: relative;
}

#withdrawModal .withdraw-method-option .payment-method-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#withdrawModal .withdraw-method-option .payment-method-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: none !important;
  border-radius: 12px;
  background: var(--bg-secondary);
  box-shadow: none !important;
  outline: none !important;
  transition: background-color 0.2s ease;
}

#withdrawModal .withdraw-method-option:hover .payment-method-content {
  border: none !important;
  background: var(--card);
}

#withdrawModal .withdraw-method-option.is-selected .payment-method-content {
  border: none !important;
  background: var(--card);
}

#withdrawModal .withdraw-method-option .payment-method-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

#withdrawModal .withdraw-method-option .payment-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

#withdrawModal .withdraw-method-option .payment-method-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#withdrawModal .withdraw-method-option .payment-method-name {
  font-weight: 600;
  font-size: 1em;
  color: var(--text);
  transition: color 0.25s ease;
}

#withdrawModal .withdraw-sbp-bank-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#withdrawModal .withdraw-sbp-bank-btn {
  padding: 10px 16px;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

#withdrawModal .withdraw-sbp-bank-btn:hover {
  border-color: var(--text-secondary);
  background: var(--card);
}

#withdrawModal .withdraw-sbp-bank-btn.selected {
  border-color: var(--button-primary-bg);
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.withdraw-method-form {
  display: none;
}

.withdraw-history-section {
  margin-top: 8px;
}

.withdraw-history-list {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.withdraw-history-list::-webkit-scrollbar {
  width: 6px;
}

.withdraw-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.withdraw-history-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
  transition: background-color 0.25s ease;
}

.withdraw-history-item {
  transition: background-color 0.2s;
}

.withdraw-history-item:hover {
  background: var(--button-hover-bg) !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: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.withdraw-status-approved {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

html:not(.dark) .withdraw-status-approved {
  background: var(--fill-secondary);
  color: var(--fill-grouped);
}

html.dark .withdraw-status-approved {
  background: #2a2a2a;
  color: var(--fill-elevated);
}

.withdraw-status-rejected {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

html:not(.dark) .withdraw-status-rejected {
  background: var(--fill-secondary);
  color: var(--fill-grouped);
}

html.dark .withdraw-status-rejected {
  background: #2a2a2a;
  color: var(--fill-elevated);
}

.withdraw-btn-light:hover {
    background: var(--button-hover-bg) !important;
}

.withdraw-cancel-btn:hover {
    background: var(--button-hover-bg) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.topup-modal-content {
  scrollbar-width: none;
  overflow-y: auto;
}

.topup-modal-content::-webkit-scrollbar {
  display: none;
}

.topup-history-section {
  margin-top: 0;
  width: 100%;
  padding-right: 0;
}

.topup-history-list {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  width: 100%;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

.topup-history-list::-webkit-scrollbar {
  width: 6px;
}

.topup-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.topup-history-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
  transition: background-color 0.25s ease;
}

.topup-history-item {
  transition: background-color 0.2s;
}

.topup-history-item:hover {
  background: var(--button-hover-bg) !important;
}

#withdrawModal button[onclick="closeWithdrawModal()"]:hover,
#topUpModal button[onclick="closeTopUpModal()"]:hover {
  background-color: var(--button-hover-bg) !important;
}

#sbpBankModal {
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    align-items: center;
    justify-content: center;
    display: none;
}

#sbpBankModal[style*="display:flex"],
#sbpBankModal.show {
    display: flex !important;
}

#sbpBankModal .sbp-bank-modal-content {
    background: var(--card);
    border-radius: 12px;
    max-width: 400px;
    width: 92vw;
    padding: 28px 24px;
    box-shadow: 0 12px 32px var(--shadow-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: background-color 0.25s ease;
}

#sbpBankModal .sbp-bank-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#sbpBankModal .sbp-bank-modal-title {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text);
    transition: color 0.25s ease;
}

#sbpBankModal .sbp-bank-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.25s ease;
}

#sbpBankModal .sbp-bank-modal-close:hover {
    background-color: var(--button-hover-bg);
    color: var(--text);
}

#sbpBankModal .sbp-bank-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sbp-bank-btn {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.25s ease;
  color: var(--text);
}

.sbp-bank-btn:hover {
    background-color: var(--button-hover-bg);
    border-color: var(--border);
}

.sbp-bank-btn:active {
    background-color: var(--bg-secondary);
}

.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;
}

.topup-modal-content,
.withdraw-modal-content {
    background: var(--card) !important;
    color: var(--text) !important;
}

.topup-modal-content h3,
.withdraw-modal-content h3,
.topup-modal-content h4,
.withdraw-modal-content h4 {
    color: var(--text) !important;
}

.topup-modal-content label,
.withdraw-modal-content label {
    color: var(--text) !important;
}

.topup-modal-content input,
.withdraw-modal-content input,
.topup-modal-content select,
.withdraw-modal-content select {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.topup-modal-content input::placeholder,
.withdraw-modal-content input::placeholder {
    color: var(--text-muted) !important;
}

.region-tab.active {
    background: var(--card) !important;
    color: var(--text) !important;
}

.region-tab {
    color: var(--text) !important;
}

.topup-history-section {
    border-top: none !important;
}

#topUpModal .payment-section {
    padding-top: 0;
    border-top: none;
}

#topUpModal .payment-section-title {
    margin: 0 0 8px 0;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text);
    transition: color 0.25s ease;
}

#topUpModal .payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

#topUpModal .payment-method-option {
    display: block;
    cursor: pointer;
    position: relative;
}

#topUpModal .payment-method-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#topUpModal .payment-method-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: none !important;
    border-radius: 12px;
    background: var(--bg-secondary);
    box-shadow: none !important;
    outline: none !important;
    transition: background-color 0.2s ease;
}

#topUpModal .payment-method-option:hover .payment-method-content {
    border: none !important;
    background: var(--card);
}

#topUpModal .payment-method-option.is-selected .payment-method-content {
    border: none !important;
    background: var(--card);
}

#topUpModal .payment-method-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
}

#topUpModal .payment-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
}

#topUpModal .payment-method-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#topUpModal .payment-method-name {
    font-weight: 600;
    font-size: 1em;
    color: var(--text);
    transition: color 0.25s ease;
}

#topUpModal .payment-panels {
    margin-top: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

#topUpModal .payment-panel {
    display: none;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#topUpModal .payment-panel.is-active,
#topUpModal .payment-panel[style*="display:block"] {
    display: block !important;
}

#topUpModal .payment-note {
    margin-top: 12px;
    font-size: 0.85em;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.25s ease;
}

.topup-history-item,
.withdraw-history-item {
    background: var(--bg-secondary) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.topup-history-item span,
.withdraw-history-item span {
    color: var(--text) !important;
}

.topup-history-item span[style*="color:var(--label-secondary)"],
.withdraw-history-item span[style*="color:var(--label-secondary)"] {
    color: var(--text-muted) !important;
}

.withdraw-btn-light {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.sbp-bank-btn {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

#ruSbpCalc,
#ruSbpCalc div {
    color: var(--text) !important;
    min-height: 20px;
    line-height: 1.4;
}

#ruSbpCalc {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

#ruSbpStatus {
    color: var(--text-muted) !important;
}

.topup-modal-content div[style*="background:var(--fill-elevated)"],
.topup-modal-content div[style*="background: var(--fill-elevated)"],
.withdraw-modal-content div[style*="background:var(--fill-elevated)"],
.withdraw-modal-content div[style*="background: var(--fill-elevated)"] {
    background: var(--card) !important;
}

.topup-modal-content div[style*="color:var(--fill-grouped)"],
.topup-modal-content div[style*="color: var(--fill-grouped)"],
.topup-modal-content div[style*="color:var(--label-secondary)"],
.topup-modal-content div[style*="color: var(--label-secondary)"],
.withdraw-modal-content div[style*="color:var(--fill-grouped)"],
.withdraw-modal-content div[style*="color: var(--fill-grouped)"],
.withdraw-modal-content div[style*="color:var(--label-secondary)"],
.withdraw-modal-content div[style*="color: var(--label-secondary)"] {
    color: var(--text) !important;
}

.topup-modal-content div[style*="border"],
.withdraw-modal-content div[style*="border"] {
    border-color: var(--border) !important;
}

.topup-modal-content div[style*="border-top"],
.topup-modal-content div[style*="border-bottom"],
.withdraw-modal-content div[style*="border-top"],
.withdraw-modal-content div[style*="border-bottom"] {
    border-top: none !important;
    border-bottom: none !important;
}

.topup-modal-content button[style*="background:var(--fill-elevated)"],
.topup-modal-content button[style*="background: var(--fill-elevated)"],
.withdraw-modal-content button[style*="background:var(--fill-elevated)"],
.withdraw-modal-content button[style*="background: var(--fill-elevated)"] {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.topup-modal-content button[style*="color:var(--label-secondary)"],
.topup-modal-content button[style*="color: var(--label-secondary)"],
.withdraw-modal-content button[style*="color:var(--label-secondary)"],
.withdraw-modal-content button[style*="color: var(--label-secondary)"] {
    color: var(--text) !important;
}

.topup-modal-content div[style*="background:var(--fill-secondary)"],
.topup-modal-content div[style*="background: var(--fill-secondary)"],
.topup-modal-content div[style*="background:#f9f9f9"],
.topup-modal-content div[style*="background: #f9f9f9"],
.withdraw-modal-content div[style*="background:#f9f9f9"],
.withdraw-modal-content div[style*="background: #f9f9f9"],
.topup-modal-content div[style*="background:var(--fill-elevated)"],
.topup-modal-content div[style*="background: var(--fill-elevated)"],
.withdraw-modal-content div[style*="background:var(--fill-elevated)"],
.withdraw-modal-content div[style*="background: var(--fill-elevated)"] {
    background: var(--bg-secondary) !important;
}

.topup-modal-content,
.withdraw-modal-content {
    box-shadow: none !important;
}

@media (max-width: 768px) {
    #topUpModal > div {
        max-height: 96vh;
        width: 96vw;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    #topUpModal > div {
        max-height: 98vh;
        width: 98vw;
        padding: 12px;
        border-radius: 8px;
    }
}

@media (max-width: 600px) {
    .mobile-menu-item.balance .balance-amount,
    .mobile-menu .balance-amount {
        font-size: 0.9em !important;
        line-height: 1.2;
        font-weight: 500 !important;
    }
}

.profile-card.profile-hero {
    background: transparent;
    border-radius: 0;
    padding: 0 0 28px 0;
    gap: 0;
    width: 100%;
}

.profile-grid > .profile-left .profile-card.profile-hero {
    margin-left: 24px;
    margin-right: 24px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-grid > .profile-tabs {
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .profile-grid > .profile-left .profile-card.profile-hero {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 420px !important;
        padding-bottom: 24px;
    }

    .profile-grid > .profile-tabs {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.content-area .beatmaker-tab-scroll {
    box-sizing: border-box;
    min-height: min(56dvh, calc(100dvh - var(--header-height, 56px) - 220px));
    max-height: calc(100dvh - var(--header-height, 56px) - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding-bottom: 1rem;
}

.content-area #beats.beatmaker-tab-scroll,
.content-area #kits.beatmaker-tab-scroll {
    overflow-y: scroll;
}

@media (max-width: 900px) {
    .content-area .beatmaker-tab-scroll {
        min-height: min(50dvh, calc(100dvh - var(--header-height, 56px) - 200px));
        max-height: calc(100dvh - var(--header-height, 56px) - 88px);
    }
}

@media (max-width: 600px) {
    .content-area .beatmaker-tab-scroll {
        min-height: 44dvh;
        max-height: calc(100dvh - var(--header-height, 56px) - 72px);
    }
}

.profile-hero .profile-header {
    padding: 0 !important;
    align-items: stretch !important;
    text-align: left !important;
    background: none;
    gap: 0;
}

.profile-hero-top {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: 100%;
}

.profile-hero .profile-avatar-wrapper {
    margin: 0;
    width: 172px;
}

.profile-hero .profile-avatar,
.profile-avatar-placeholder {
    width: 172px;
    height: 172px;
    border-radius: 50%;
}

.profile-avatar-placeholder {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.profile-avatar-placeholder i {
    font-size: 2.5rem;
}

.profile-hero-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-height: 172px;
    height: 172px;
    padding-top: 0;
}

.profile-hero-headline {
    width: 100%;
}

.profile-hero-title-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    width: 100%;
    min-width: 0;
}

.profile-name-row .profile-name {
    flex: 1;
    min-width: 0;
}

.profile-hero .profile-type-label,
.profile-hero .profile-description,
.profile-hero .profile-primary-action,
.profile-menu-modal-actions .profile-menu-item {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-hero .profile-name {
    text-transform: none;
    letter-spacing: -0.01em;
}

.profile-hero .profile-menu-toggle--inline {
    text-transform: none;
    letter-spacing: 0;
}

.profile-hero .profile-name {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    line-height: 1.2;
    font-weight: 500;
}

.profile-hero .profile-name .bi-patch-check-fill {
    font-size: 0.82em;
    color: var(--verified);
}
.profile-hero .profile-name .bi-patch-check-fill.is-paid {
    color: var(--verified-paid);
}

.profile-type-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.profile-meta-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 18px;
}

.profile-hero .profile-stats {
    justify-content: flex-start;
    gap: 28px;
    margin-top: 0;
    text-align: left;
    flex-wrap: wrap;
}

.profile-hero .profile-stats .profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
}

.profile-hero .profile-stats .profile-stat-link {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.profile-hero .profile-stats .profile-stat-link:hover {
    opacity: 0.82;
}

.profile-hero .profile-stats .profile-stat-value,
.profile-hero .profile-stats span.profile-stat-value {
    display: block;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

.profile-hero .profile-stats .profile-stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-muted);
}

.profile-hero .profile-stats > * {
    padding: 0;
    border-radius: 0;
}

.profile-hero .profile-stats > a:hover {
    background: none;
}

.profile-hero .profile-stats div,
.profile-hero .profile-stats a {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.profile-hero .profile-stats .profile-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.profile-hero .profile-stats .profile-stat-value {
    font-size: 0.92rem;
    color: var(--text);
}

.profile-hero .profile-description {
    margin: 0;
    max-width: 760px;
    padding: 0;
    text-align: left;
    font-size: 0.74rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.profile-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    row-gap: 14px;
    column-gap: 18px;
    width: 100%;
}

.profile-hero .profile-primary-action {
    width: auto;
    max-width: none;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: var(--bg-secondary);
    font-size: 0.76rem;
    font-weight: 500;
    box-shadow: none;
    filter: none;
}

.profile-hero .profile-primary-action:hover {
    background: var(--button-hover-bg);
    box-shadow: none;
    filter: none;
}

.profile-hero .profile-socials {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 14px;
    row-gap: 12px;
    column-gap: 14px;
    margin: 0;
    padding: 4px 0;
}

.profile-hero .social-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: none;
  background: var(--bg-secondary);
  box-shadow: none;
  filter: none;
  margin: 0;
}

.profile-hero .social-btn:hover {
    background: var(--button-hover-bg);
    border-color: transparent;
    box-shadow: none;
    filter: none;
}

.profile-menu-toggle--inline {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 2px 4px;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: none;
    filter: none;
    flex-shrink: 0;
    align-self: center;
}

.profile-menu-toggle--inline:hover,
.profile-menu-toggle--inline:focus-visible {
    color: var(--text);
}

.profile-menu-dots {
    display: inline-block;
    line-height: 1;
    letter-spacing: 0.06em;
    transform: translateY(-1px);
}

.profile-menu-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.16);
    z-index: 1200;
}

.profile-menu-modal.active {
    display: flex;
}

.profile-menu-modal-card {
    width: min(320px, calc(100vw - 32px));
    max-height: min(90vh, calc(100dvh - 40px));
    background: var(--card);
    border-radius: 24px;
    padding: 18px 18px 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.profile-menu-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-menu-modal-title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.profile-menu-modal-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
}

.profile-menu-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-menu-item {
    border: none;
    background: var(--bg-secondary);
    color: var(--text);
    font: inherit;
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: center;
    padding: 14px 16px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    filter: none;
}

.profile-menu-item:hover {
    color: var(--text);
    background: var(--button-hover-bg);
}

@media (max-width: 768px) {
    .profile-hero-top {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 18px;
        align-items: stretch;
    }

    .profile-hero .profile-avatar-wrapper {
        width: 132px;
    }

    .profile-hero .profile-avatar,
    .profile-avatar-placeholder {
        width: 132px;
        height: 132px;
    }

    .profile-hero-main {
        gap: 12px;
        min-height: 132px;
        height: 132px;
    }

    .profile-hero-headline {
        width: 100%;
    }

    .profile-name-row {
        gap: 8px 10px;
    }

    .profile-menu-toggle--inline {
        font-size: 1rem;
        padding: 2px;
    }

    .profile-hero .profile-name {
        font-size: 0.96rem;
    }

    .profile-hero .profile-stats {
        gap: 18px 22px;
    }

    .profile-hero .profile-stats span {
        font-size: 0.84rem;
    }

    .profile-hero .profile-description {
        font-size: 0.68rem;
        line-height: 1.55;
    }

    .profile-menu-modal-card {
        border-radius: 20px;
        padding: 16px;
    }
}

@media (max-width: 560px) {
    .profile-hero-top {
        grid-template-columns: 1fr;
    }

    .profile-hero .profile-avatar-wrapper {
        width: 148px;
    }

    .profile-hero .profile-avatar,
    .profile-avatar-placeholder {
        width: 148px;
        height: 148px;
    }

    .profile-hero-main {
        min-height: auto;
        height: auto;
    }
}

.profile-posts-section {
    margin-top: 24px;
}

.profile-posts-title {
    margin: 0 0 14px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.profile-post-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.profile-post-form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-post-form textarea,
.profile-post-form select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text);
    padding: 10px 12px;
}

.profile-post-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}

.profile-post-submit {
    max-width: 180px;
}

.profile-posts-list {
    display: grid;
    gap: 12px;
}

.profile-post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}

.profile-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.profile-post-author {
    font-weight: 600;
    color: var(--text);
}

.profile-post-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.profile-post-text {
    margin: 0 0 10px;
    white-space: pre-wrap;
}

.profile-post-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 8px;
}

.profile-post-audio {
    width: 100%;
    margin-top: 6px;
}

.profile-post-attachment-note {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.post-mention {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}

.profile-post-empty {
    color: var(--text-muted);
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.profile-post-image-link {
    display: block;
    margin: 8px 0 10px;
}

.profile-post-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.profile-post-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.profile-post-actions {
    margin-top: 10px;
}

.profile-post-action-btn,
.profile-post-comment-submit {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
}

.profile-post-action-btn.active {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.profile-post-comment-form {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.profile-post-comment-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text);
    padding: 10px 12px;
}

.profile-post-comments {
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: grid;
    gap: 6px;
}

.profile-post-comment-item {
    font-size: 0.92rem;
}

.profile-post-comment-author {
    color: var(--text);
    font-weight: 600;
    margin-right: 6px;
}

.profile-post-comment-text {
    color: var(--text-muted);
}

@media (max-width: 720px) {
    .profile-post-form-grid {
        grid-template-columns: 1fr;
    }
}

.profile-post-composer {
    border-radius: 16px;
    padding: 14px;
}

.profile-post-main-input textarea {
    min-height: 92px;
    border: none;
    border-radius: 12px;
    background: transparent;
    padding: 12px 10px 8px;
    font-size: 1rem;
    resize: vertical;
}

.profile-post-main-input textarea:focus {
    outline: none;
    box-shadow: none;
}

.profile-post-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.profile-post-clip-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.profile-post-clip-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.profile-post-submit {
  min-width: 120px;
  max-width: 120px;
}

.profile-post-attachments-panel {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.profile-post-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-post-selected-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.profile-post-selected-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

@media (max-width: 900px) {
    .profile-post-form-grid {
        grid-template-columns: 1fr;
    }
}

#licenses.beatmaker-tab-scroll {
    overflow-y: visible;
    max-height: none;
    min-height: 0;
}

.license-editor-form {
    max-width: 640px;
    margin: 0 auto;
}

.license-editor-hint {
    margin: 0 0 20px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.license-editor {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.license-card {
    background: var(--card);
    border-radius: 14px;
    padding: 18px 20px;
    transition: opacity 0.25s ease;
}

.license-card--off {
    opacity: 0.5;
}

.license-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.license-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.license-card__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.license-card__toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.license-card__toggle-track {
    width: 44px;
    height: 26px;
    background: var(--border);
    border-radius: 26px;
    position: relative;
    transition: background-color 0.25s ease;
}

.license-card__toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--fill-elevated);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease;
}

.license-card__toggle-input:checked + .license-card__toggle-track {
    background: var(--text);
}

.license-card__toggle-input:checked + .license-card__toggle-track::after {
    transform: translateX(18px);
}

.license-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.license-card__spec-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 4px;
}

.license-card__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.license-card__cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.license-card__cell-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.license-card__cell-input {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
    -moz-appearance: textfield;
    appearance: textfield;
    transition: background-color 0.2s ease;
}

.license-card__cell-input::-webkit-outer-spin-button,
.license-card__cell-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.license-card__cell-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.license-card__cell-input:focus {
    outline: none;
    background: color-mix(in srgb, var(--bg-secondary) 70%, var(--fill-elevated));
}

.license-card__flags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.license-card__flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.license-card__flag input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--text);
}

.license-editor-actions {
    margin-top: 20px;
}

.license-editor-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.license-editor-save:hover {
    background: var(--card);
    border-color: var(--text-muted);
}

@media (max-width: 560px) {
    .license-card__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .license-card {
        padding: 14px 16px;
    }
}

.finance-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1400;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-sizing: border-box;
    overflow: visible;
}

#topUpModal.finance-modal,
#withdrawModal.finance-modal {
    display: none;
}

.finance-modal-card {
    width: min(560px, 100%);
    max-height: min(88vh, 860px);
    height: fit-content;
    overflow-y: auto;
    padding: 22px 22px 16px;
    border: none !important;
    border-radius: 22px;
    background: var(--bg-secondary);
    color: var(--text);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    scrollbar-width: none;
}

.finance-modal-card::-webkit-scrollbar {
    display: none;
}

.finance-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.finance-kicker {
    margin: 0 0 5px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.finance-modal-header h3,
.finance-success-step h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.finance-modal-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.finance-panel,
.finance-summary,
.finance-history {
    border: none !important;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}

.finance-panel + .finance-panel,
.finance-panel + .finance-summary,
.finance-summary + .finance-primary-btn,
.payment-panels,
.finance-history {
    margin-top: 14px;
}

.finance-label,
.finance-section-head p {
    display: block;
    margin: 0 0 10px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 650;
}

.finance-hint,
.finance-method-note {
    margin: 9px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.finance-money-input {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    border-radius: 18px;
    background: var(--bg-secondary);
    padding: 0 16px;
}

.finance-money-input > span {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 700;
}

.finance-money-input input,
.finance-field,
#topUpModal #topUpAmount,
#withdrawModal #withdrawAmount,
#withdrawModal #paypalEmail,
#withdrawModal #withdrawCardNumber {
    width: 100%;
    height: 58px;
    border: none !important;
    border-radius: 18px !important;
    background: transparent !important;
    color: var(--text) !important;
    font-size: 1.2rem !important;
    font-weight: 650;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.finance-field {
    background: var(--card) !important;
    padding: 0 16px !important;
    font-size: 1rem !important;
}

.finance-method-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
    margin-top: 0 !important;
    align-items: stretch;
}

.finance-method-card:not(.withdraw-method-option),
#topUpModal .payment-method-option,
#withdrawModal .payment-method-option:not(.withdraw-method-option) {
    display: block;
    width: 100%;
    border: none !important;
    border-radius: 18px !important;
    background: var(--bg-secondary) !important;
    cursor: pointer;
    overflow: hidden;
    box-shadow: none !important;
    transform: none !important;
    box-sizing: border-box;
}

.finance-method-card .payment-method-content,
#topUpModal .payment-method-content,
#withdrawModal .payment-method-content,
#topUpModal .payment-method-option .payment-method-content,
#withdrawModal .withdraw-method-option .payment-method-content {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 74px;
    width: 100%;
    padding: 14px !important;
    border: none !important;
    border-radius: 18px !important;
    background: transparent !important;
    box-sizing: border-box;
}

.finance-method-card:not(.withdraw-method-option):hover,
#topUpModal .payment-method-option:hover,
#withdrawModal .payment-method-option:not(.withdraw-method-option):hover {
    transform: none !important;
    background: color-mix(in srgb, var(--card) 82%, var(--text) 6%) !important;
    border: none !important;
}

.finance-method-card:not(.withdraw-method-option):has(.payment-method-input:checked),
#topUpModal .payment-method-option:has(.payment-method-input:checked),
#withdrawModal .payment-method-option:not(.withdraw-method-option):has(.payment-method-input:checked) {
    background: var(--text) !important;
    color: var(--bg) !important;
    box-shadow: none !important;
    border: none !important;
}

.finance-method-card:not(.withdraw-method-option):has(.payment-method-input:checked) .payment-method-name,
.finance-method-card:not(.withdraw-method-option):has(.payment-method-input:checked) .finance-method-note {
    color: var(--bg) !important;
}

.finance-method-card .payment-method-logo {
    width: 42px;
    height: 42px;
    border: none !important;
    border-radius: 14px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.finance-method-card .payment-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.finance-rate-box {
    visibility: hidden;
    opacity: 0;
    min-height: 24px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.finance-status-step,
.finance-success-step {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    text-align: center;
}

.finance-status-icon,
.finance-success-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.finance-status-icon--pending {
    letter-spacing: 0.08em;
}

.finance-status-title {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 650;
}

.finance-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.withdraw-sbp-bank-section {
    margin-top: 14px !important;
}

.withdraw-sbp-bank-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px !important;
}

.finance-summary {
    display: flex !important;
    flex-direction: column;
    gap: 10px !important;
    color: var(--text);
    font-size: 0.92rem;
}

.finance-summary > div {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.finance-summary > div.finance-summary-cards-only.is-hidden {
    display: none !important;
}

.finance-summary > div:last-child:not(.is-hidden) {
    margin-top: 4px;
    padding-top: 10px;
    border-top: none !important;
}

.finance-summary-rate {
    justify-content: flex-start !important;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.35;
    padding-top: 2px;
}

.finance-summary-rate span {
    width: 100%;
}

.finance-history-toggle {
    width: 100%;
    border: none !important;
    background: transparent !important;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 !important;
    font-size: 0.95rem;
    font-weight: 650;
    cursor: pointer;
}

.finance-history-list {
    list-style: none;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px !important;
    max-height: 260px;
    overflow-y: auto;
}

.finance-history-item,
#topUpModal .topup-history-item,
#withdrawModal .withdraw-history-item {
    border: none !important;
    border-radius: 16px !important;
    background: var(--card) !important;
    padding: 12px !important;
    transform: none !important;
}

.finance-history-item:hover,
#withdrawModal .withdraw-history-item:hover {
    background: var(--card) !important;
    transform: none !important;
}

.topup-status,
.withdraw-status-badge {
    border: none !important;
}

.finance-success-step {
    display: none;
}

.finance-success-text {
    max-width: 360px;
    margin: 12px auto 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.finance-success-summary {
    width: 100%;
    margin: 0 0 18px;
}

@media (max-width: 560px) {
    .finance-modal {
        padding: 12px;
    }

    .finance-modal-card {
        padding: 20px;
        border-radius: 24px;
    }

    .finance-method-grid {
        grid-template-columns: 1fr;
    }
}

@font-face {
    font-family: Twemoji;
    font-display: optional;
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    src: url("/static/fonts/twemoji.aac75d901445.ttf") format("truetype");
}

#withdrawModal .withdraw-method-option.finance-method-card,
#withdrawModal .withdraw-method-option.payment-method-option {
    background: transparent !important;
    color: var(--text) !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

#withdrawModal .withdraw-method-option.is-selected,
#withdrawModal .withdraw-method-option:has(.payment-method-input:checked) {
    background: transparent !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

#withdrawModal .withdraw-method-option.is-selected .payment-method-content,
#withdrawModal .withdraw-method-option:has(.payment-method-input:checked) .payment-method-content {
    border-color: var(--text) !important;
    background: var(--card) !important;
}

#withdrawModal .withdraw-method-option.is-selected .payment-method-name,
#withdrawModal .withdraw-method-option:has(.payment-method-input:checked) .payment-method-name,
#withdrawModal .withdraw-method-option.is-selected .payment-method-meta,
#withdrawModal .withdraw-method-option:has(.payment-method-input:checked) .payment-method-meta {
    color: var(--text) !important;
}

#withdrawModal .country-flag {
    font-family: Twemoji, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-style: normal;
    font-weight: normal;
    letter-spacing: 0;
}

#withdrawModal .withdraw-cards-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

#withdrawModal .payment-method-flags {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95em;
    line-height: 1;
}

#withdrawModal .payment-method-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.payout-requisites-panel {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.payout-requisites-warning {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: none;
    background: color-mix(in srgb, #f59e0b 14%, var(--bg-secondary));
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.4;
}

.payout-requisites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payout-requisites-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payout-req-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: none !important;
    outline: none !important;
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
    color: var(--text);
    transition: box-shadow 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}

.payout-req-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.payout-req-card.is-selected {
    box-shadow: var(--shadow-md);
    background: var(--card);
}

.payout-req-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.payout-req-card__logo img,
.payout-req-card__logo svg {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.payout-req-card__logo .bi-credit-card,
.payout-req-card__logo svg.lucide-credit-card {
    font-size: 1.55rem;
    color: #1d4ed8;
}

.payout-req-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.payout-req-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
}

.payout-req-card__meta {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payout-req-card__edit {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.payout-req-card__edit:hover {
    color: var(--text);
    background: #f3f4f6;
}

.payout-req-add-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.payout-req-add-btn {
  flex: 1;
  min-height: 44px;
  border: none !important;
  background: var(--bg-secondary);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
}

.payout-req-add-btn:hover {
    background: color-mix(in srgb, var(--text) 8%, var(--bg-secondary));
}

.payout-req-editor {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payout-req-editor[hidden] {
    display: none !important;
}

.payout-req-editor__actions {
    display: flex;
    gap: 8px;
}

.payout-req-editor__actions .finance-primary-btn,
.payout-req-editor__actions .finance-secondary-btn {
  width: auto;
  min-width: 120px;
}

.payout-req-editor__hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

#topUpModal input:not([type="radio"]):not([type="checkbox"]),
#withdrawModal input:not([type="radio"]):not([type="checkbox"]),
#topUpModal .finance-money-input,
#withdrawModal .finance-money-input,
#topUpModal .finance-field,
#withdrawModal .finance-field {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#topUpModal .payment-method-content,
#withdrawModal .payment-method-content {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

html.dark .payout-req-card {
    background: color-mix(in srgb, var(--card) 92%, var(--fill-elevated) 8%);
    color: var(--text);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

html.dark .payout-req-card.is-selected {
    background: var(--fill-tertiary) !important;
    box-shadow: inset 0 0 0 1.5px var(--accent) !important;
}

html.dark .payout-req-card__title {
    color: var(--text);
}

html.dark .payout-req-card__meta {
    color: var(--text-muted);
}

html.dark .payout-req-card__edit {
    color: var(--text-muted);
}

html.dark .payout-req-card__edit:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 10%, transparent);
}

#withdrawModal .payment-logo-cards {
    background: var(--bg);
    color: var(--text);
    font-size: 1.35rem;
}

.dashboard-grid.redesigned .stat-card.balance-card {
    min-height: 196px;
    aspect-ratio: 1.586 / 1;
    padding: 20px 22px 18px;
    border-radius: 18px;
    background-color: #d4d4d8;
    background-image: url("../images/card.9431afd598bd.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #1c1c1e;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dashboard-grid.redesigned .stat-card.balance-card .mastercard-logo {
    display: none;
}

.dashboard-grid.redesigned .stat-card.balance-card h3 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #636366;
}

.dashboard-grid.redesigned .stat-card.balance-card .balance-amount {
    margin: 0;
    font-size: clamp(1.75rem, 4.5vw, 2.35rem);
    line-height: 1.04;
    font-weight: 750;
    color: #1c1c1e;
    word-break: break-word;
}

.dashboard-grid.redesigned .stat-card.balance-card .cardholder-name {
    margin: 0;
    font-size: 0.75rem;
    color: #636366;
    letter-spacing: 0.08em;
}

.dashboard-grid.redesigned .stat-card.balance-card .balance-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
}

.dashboard-grid.redesigned .stat-card.balance-card .balance-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: none !important;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-grid.redesigned .stat-card.balance-card .balance-btn.topup-btn {
    background: rgba(28, 28, 30, 0.92) !important;
    color: #ffffff !important;
    border: none !important;
}

.dashboard-grid.redesigned .stat-card.balance-card .balance-btn.withdraw-btn {
    background: rgba(255, 255, 255, 0.62) !important;
    color: #1c1c1e !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.dashboard-grid.redesigned .stat-card.balance-card .balance-btn span {
    color: inherit !important;
    white-space: nowrap;
}

.charts-container .charts-grid-dashboard {
    grid-template-columns: 1fr !important;
}

.chart-container-single {
    width: 100%;
}

.chart-metric-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 3px;
    border-radius: 999px;
    background: var(--bg-secondary);
}

.chart-metric-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: default;
    flex: 0 0 auto;
}

.chart-metric-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--metric-color, var(--label-primary));
}

.chart-metric-btn--plays { --metric-color: var(--chart-plays); }
.chart-metric-btn--sales { --metric-color: var(--system-blue); }
.chart-metric-btn--profit { --metric-color: var(--system-green); }
.chart-metric-btn--followers { --metric-color: var(--chart-followers); }
.chart-metric-btn--likes { --metric-color: var(--chart-likes); }

.profile-tabs .tab-link i {
    display: none;
}

.charts-container .chart-container-single {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 400px !important;
    height: 400px !important;
    border-radius: 18px;
    box-sizing: border-box;
    background: var(--card);
    border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
    padding: 16px;
}

.charts-container .chart-container-single .apex-chart-container {
    min-height: 320px;
}

.charts-container .chart-container-single canvas {
    max-height: 320px !important;
}

.charts-container .chart-container-single.is-chart-fullscreen canvas {
    max-height: none !important;
}

.charts-toolbar {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.charts-toolbar-row {
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .profile-grid {
        gap: 10px !important;
    }

    .profile-grid > .profile-tabs {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .profile-container .content-area > .tab-content.active {
        padding-top: 10px !important;
    }

    .profile-tabs .tab-link .tab-text {
        display: inline;
    }

    .profile-tabs .tab-link i {
        display: none;
    }

    .profile-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: visible;
        gap: 6px;
        margin-bottom: 0;
        padding-bottom: 0;
        justify-content: stretch;
        scrollbar-width: none;
        max-width: 100%;
        width: 100%;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .profile-tabs .tab-link {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        height: auto;
        min-height: 36px;
        padding: 8px 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-size: 0.8rem;
        border-radius: 12px;
        background: var(--bg-secondary);
    }

    .profile-tabs .tab-link.active {
        background: var(--text);
        color: var(--bg);
    }

    .profile-tabs .tab-link.active::after {
        display: none;
    }

    .chart-range-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(0, 0, 0, 0.4);
    }

    .chart-range-backdrop.is-visible {
        display: block;
    }

    .chart-range-dropdown.is-open .chart-range-menu {
        position: fixed;
        left: 50%;
        right: auto;
        top: auto;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        width: min(calc(100vw - 32px), 360px);
        min-width: 0;
        z-index: 1100;
        max-height: min(70dvh, 420px);
        overflow-y: auto;
    }

    .chart-date-input {
        font-size: 16px;
        min-height: 44px;
    }

    .charts-container .chart-container-single {
        min-height: 300px !important;
        height: auto !important;
        background: var(--card);
        border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .profile-container .profile-hero .profile-header {
        align-items: stretch !important;
        text-align: left !important;
    }

    .profile-container .profile-hero-top {
        grid-template-columns: 108px minmax(0, 1fr) !important;
        gap: 14px !important;
        align-items: start !important;
    }

    .profile-container .profile-hero .profile-avatar-wrapper {
        width: 108px !important;
        margin: 0 !important;
        flex-shrink: 0;
        overflow: visible !important;
    }

    .profile-container .profile-hero .profile-avatar,
    .profile-container .profile-hero .profile-avatar-placeholder {
        width: 108px !important;
        height: 108px !important;
        min-width: 108px !important;
        min-height: 108px !important;
        object-fit: cover;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html.dark .profile-container .profile-hero .profile-avatar-wrapper::before {
        width: 108px;
        height: 108px;
    }

    .profile-container .profile-hero-main {
        min-height: auto !important;
        height: auto !important;
    }

    .profile-container .profile-grid > .profile-left .profile-card.profile-hero {
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    .profile-container .content-area .tab-content:has(.beats-grid.beats-grid-public),
    .profile-container .content-area .beats-grid.beats-grid-public,
    .profile-container .content-area .beat-card,
    .profile-container .content-area .beat-card-inner,
    .profile-container .content-area .beat-info,
    .profile-container .content-area .beat-text,
    .profile-container .content-area .beat-footer {
        text-align: left !important;
        align-items: stretch !important;
        justify-items: stretch !important;
    }

    .profile-container .content-area .tab-content:has(.beats-grid.beats-grid-public) {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .profile-container .content-area .beat-title,
    .profile-container .content-area .beat-title a {
        text-align: left !important;
        white-space: normal !important;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2;
        line-height: 1.25 !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 0 4px !important;
    }

    .profile-container .content-area .beat-user {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .profile-container .content-area .beat-footer {
        justify-content: flex-start !important;
    }

    .profile-container .content-area .beat-card {
        padding: 6px !important;
        align-items: stretch !important;
    }

    .profile-container .content-area .beats-grid.beats-grid-public .beat-footer {
        gap: 4px !important;
        align-items: center !important;
    }

    .profile-container .content-area .beats-grid.beats-grid-public .beat-footer .price-btn {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 8px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

    .profile-container .content-area .beats-grid.beats-grid-public .beat-footer .favorite-btn,
    .profile-container .content-area .beats-grid.beats-grid-public .beat-footer .favorite-btn.add-to-cart-async {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        flex-shrink: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 480px) {
    .profile-container .profile-hero-top {
        grid-template-columns: 88px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .profile-container .profile-hero .profile-avatar-wrapper {
        width: 88px !important;
    }

    .profile-container .profile-hero .profile-avatar,
    .profile-container .profile-hero .profile-avatar-placeholder {
        width: 88px !important;
        height: 88px !important;
        min-width: 88px !important;
        min-height: 88px !important;
    }

    html.dark .profile-container .profile-hero .profile-avatar-wrapper::before {
        width: 88px;
        height: 88px;
    }
}

.finance-modal,
#topUpModal.finance-modal,
#withdrawModal.finance-modal,
#payoutRequisiteModal.finance-modal {
  animation: none !important;
  transform: none !important;
}
.finance-modal--nested { z-index: 1500; }
.finance-modal-card,
.finance-modal-card--compact {
  width: min(440px, 100%) !important;
  border: none !important;
  border-radius: 22px !important;
  background: var(--card) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.16) !important;
  transform: none !important;
  animation: none !important;
}
#topUpModal .finance-modal-card.topup-modal-content,
#withdrawModal .finance-modal-card.withdraw-modal-content {
  width: min(420px, 94vw) !important;
  height: fit-content !important;
  min-height: 0 !important;
  max-height: min(90vh, 720px) !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: visible !important;
  box-sizing: border-box;
  padding: 20px 20px 16px !important;
  border-radius: 22px !important;
  gap: 0 !important;
  background: var(--bg-secondary) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18) !important;
}
#topUpModal > div.finance-modal-card,
#withdrawModal > div.finance-modal-card {
  gap: 0 !important;
  padding: 20px 20px 16px !important;
  height: fit-content !important;
  min-height: 0 !important;
  overflow: visible !important;
}
#topUpModal .finance-modal-header,
#withdrawModal .finance-modal-header {
  margin-bottom: 14px !important;
  gap: 12px !important;
  flex: 0 0 auto;
}
#topUpModal .finance-modal-header h3,
#withdrawModal .finance-modal-header h3 {
  font-size: 1.25rem !important;
  letter-spacing: -0.03em !important;
  font-weight: 750 !important;
  color: var(--text) !important;
}
#topUpModal .finance-modal-close,
#withdrawModal .finance-modal-close {
  background: var(--fill-tertiary) !important;
  color: var(--text) !important;
  border-radius: 999px !important;
}
#topUpModal .finance-panel + .finance-panel,
#topUpModal .finance-panel + .finance-summary,
#topUpModal .payment-panels,
#topUpModal .finance-summary + .finance-primary-btn,
#withdrawModal .finance-panel + .finance-panel,
#withdrawModal .finance-panel + .finance-summary,
#withdrawModal .finance-summary + .finance-primary-btn,
#withdrawModal .payment-panels {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}
#topUpModal .payment-panels,
#withdrawModal .payment-panels {
  flex: 0 0 auto;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
#topUpModal .payment-panel,
#withdrawModal .payment-panel {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
#topUpModal .payment-panel[style*="display:none"],
#topUpModal .payment-panel[style*="display: none"],
#withdrawModal .payment-panel[style*="display:none"],
#withdrawModal .payment-panel[style*="display: none"] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#topUpModal .finance-money-input,
#withdrawModal .finance-money-input {
  min-height: 52px !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
  background: var(--fill-elevated) !important;
}
#topUpModal .finance-money-input input,
#withdrawModal .finance-money-input input {
  height: 52px !important;
  font-size: 1.1rem !important;
  color: var(--text) !important;
}
#topUpModal .payment-method-option,
#topUpModal .finance-method-card,
#withdrawModal .payment-method-option,
#withdrawModal .withdraw-method-option.payment-method-option,
#withdrawModal .finance-method-card {
  border-radius: 14px !important;
  background: var(--fill-elevated) !important;
}
#topUpModal .payment-method-content,
#topUpModal .finance-method-card .payment-method-content,
#withdrawModal .payment-method-content {
  padding: 12px !important;
  min-height: 52px !important;
}
#topUpModal .finance-rate-box {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}
#topUpModal .finance-modal-card > :last-child,
#withdrawModal .finance-modal-card > :last-child {
  margin-bottom: 0 !important;
}
#topUpModal .finance-modal-card,
#withdrawModal .finance-modal-card,
#topUpModal .finance-modal-card *,
#withdrawModal .finance-modal-card * {
  font-family: 'Inter', var(--font-family), system-ui, sans-serif;
}
.finance-modal-card--compact { width: min(400px, 100%) !important; }
.finance-modal-header h3 { font-size: 1.35rem !important; letter-spacing: -0.03em !important; }
.finance-money-input,
#topUpModal .finance-money-input,
#withdrawModal .finance-money-input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 14px !important;
  background: var(--fill-elevated) !important;
  min-height: 52px;
}
#topUpModal .payment-method-option,
#topUpModal .finance-method-card,
#withdrawModal .payment-method-option,
#withdrawModal .withdraw-method-option.payment-method-option {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  background: var(--fill-elevated) !important;
  border-radius: 14px !important;
}
#topUpModal .payment-method-option:hover,
#topUpModal .payment-method-option:hover .payment-method-content,
#topUpModal .finance-method-card:hover,
#withdrawModal .payment-method-option:hover,
#withdrawModal .withdraw-method-option:hover {
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  background: color-mix(in srgb, var(--text) 4%, var(--fill-elevated)) !important;
}
#topUpModal .payment-method-option:has(.payment-method-input:checked),
#topUpModal .payment-method-option.is-selected,
#topUpModal .payment-method-option:has(.payment-method-input:checked) .payment-method-content,
#topUpModal .payment-method-option.is-selected .payment-method-content,
#withdrawModal .payment-method-option:has(.payment-method-input:checked),
#withdrawModal .withdraw-method-option.is-selected,
#withdrawModal .withdraw-method-option.is-selected .payment-method-content {
  background: color-mix(in srgb, var(--text) 6%, var(--fill-elevated)) !important;
  color: var(--text) !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}
#topUpModal .payment-method-option:has(.payment-method-input:checked) .payment-method-name,
#topUpModal .payment-method-option.is-selected .payment-method-name {
  color: var(--text) !important;
}
.payout-requisites-warning { display: none !important; }
.payout-req-card {
  background: var(--bg-secondary) !important;
  color: var(--text) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 18px !important;
  transform: none !important;
  transition: none !important;
}
.payout-req-card:hover {
  background: color-mix(in srgb, var(--text) 6%, var(--bg-secondary)) !important;
  box-shadow: none !important;
  transform: none !important;
}
.payout-req-card.is-selected {
  background: var(--fill-tertiary) !important;
  box-shadow: inset 0 0 0 1.5px var(--accent) !important;
  transform: none !important;
}
.payout-req-card__title { color: var(--text) !important; }
.payout-req-card__meta { color: var(--text-muted) !important; }
.payout-req-card__logo {
  background: var(--card) !important;
  color: var(--text);
}
.payout-req-card__logo img {
  max-width: 28px;
  max-height: 28px;
  width: auto;
  height: auto;
}
.payout-req-card__logo img[alt="MIR"] {
  max-width: 36px;
  max-height: 22px;
}
.payout-req-add-row {
  flex-direction: column !important;
}
.payout-req-add-btn {
  width: 100%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  background: var(--bg-secondary) !important;
}
.payout-req-modal__once,
.payout-req-modal__card-note {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.payout-req-modal__card-note[hidden],
.payout-req-modal__once[hidden] { display: none !important; }
.payout-req-modal__method {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 650;
}
#payoutRequisiteModal .finance-field,
#payoutRequisiteModal #payoutReqEditValue {
  background: var(--bg-secondary) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 14px !important;
  height: 52px;
  font-size: 1.05rem !important;
}
#payoutRequisiteModal .finance-primary-btn { margin-top: 14px; }
html.dark .payout-req-card,
html.dark .payout-req-card:not(.is-selected) {
  background: var(--bg-secondary) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
html.dark .payout-req-card.is-selected {
  background: var(--fill-tertiary) !important;
  box-shadow: inset 0 0 0 1.5px var(--accent) !important;
}

.cabin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.cabin-quick-actions a,
.cabin-quick-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.cabin-quick-actions a:hover,
.cabin-quick-actions button:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--bg-secondary));
}
.dashboard-grid.redesigned.cabin-dashboard {
  gap: 12px;
}
.dashboard-grid.redesigned.cabin-dashboard .stat-card {
  border: none !important;
  box-shadow: none !important;
  border-radius: 16px;
  background: var(--bg-secondary);
  padding: 16px;
}

.storefront-theme {
  --sf-accent: var(--text);
  --sf-radius: 12px;
  --sf-font: inherit;
  --sf-title-size: 1.05rem;
  font-family: var(--sf-font);
}
.storefront-theme .beat-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.storefront-theme .beat-card-inner {
  max-width: none !important;
  margin: 0 !important;
  border-radius: var(--sf-radius);
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}
.storefront-theme[data-card-bg="surface"] .beat-card-inner {
  background: var(--bg-secondary);
  padding: 10px;
}
.storefront-theme[data-card-bg="elevated"] .beat-card-inner {
  background: var(--card);
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.storefront-theme[data-border="thin"] .beat-card-inner {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sf-accent) 28%, transparent);
}
.storefront-theme[data-border="solid"] .beat-card-inner {
  box-shadow: inset 0 0 0 2px var(--sf-accent);
}
.storefront-theme .beat-cover,
.storefront-theme .beat-cover img {
  border-radius: var(--sf-radius) !important;
}
.storefront-theme .beat-title,
.storefront-theme .beat-title a {
  font-size: var(--sf-title-size) !important;
  color: var(--text) !important;
  font-family: var(--sf-font);
}
.storefront-theme .price-btn {
  border: none !important;
  color: var(--text) !important;
}
.storefront-theme .favorite-btn,
.storefront-theme .favorite-btn.add-to-cart-async {
  border: none !important;
  box-shadow: none !important;
}
.storefront-theme[data-show-artist="0"] .beat-user,
.storefront-theme[data-show-price="0"] .sf-price,
.storefront-theme[data-show-price="0"] .price-btn,
.storefront-theme[data-show-bpm="0"] .sf-bpm,
.storefront-theme[data-show-tags="0"] .sf-tags {
  display: none !important;
}
.storefront-theme .sf-bpm,
.storefront-theme .sf-tags {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.storefront-theme[data-layout="compact"] {
  gap: 16px !important;
}
.storefront-theme[data-layout="compact"] .beat-info {
  padding-top: 6px !important;
}
.storefront-theme[data-layout="cover"] .beat-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px !important;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: var(--fill-elevated);
}
.storefront-theme[data-layout="cover"] .beat-card-inner {
  position: relative;
}
.storefront-theme[data-layout="cover"] .beat-title,
.storefront-theme[data-layout="cover"] .beat-title a,
.storefront-theme[data-layout="cover"] .beat-user,
.storefront-theme[data-layout="cover"] .beat-user a,
.storefront-theme[data-layout="cover"] .sf-bpm,
.storefront-theme[data-layout="cover"] .sf-tags {
  color: var(--fill-elevated) !important;
}
.storefront-theme[data-layout="cover"] .beat-cover {
  margin-bottom: 0;
}
.storefront-theme[data-layout="minimal"] .beat-footer {
  display: none !important;
}
.storefront-theme[data-layout="minimal"] .beat-user {
  display: none !important;
}

.storefront-builder {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .storefront-builder { grid-template-columns: 1fr; }
}
.storefront-builder__panel {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.storefront-builder__panel h4 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.storefront-builder__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.storefront-chip,
.storefront-builder__panel label.storefront-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}
.storefront-chip.is-active {
  background: var(--text);
  color: var(--bg);
}
.storefront-builder__panel select,
.storefront-builder__panel input[type="color"] {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  padding: 0 10px;
}
.storefront-builder__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.storefront-builder__actions button {
  min-height: 44px;
  border: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.storefront-builder__save {
  background: var(--text);
  color: var(--bg);
}
.storefront-builder__reset {
  background: var(--card);
  color: var(--text);
}
.storefront-builder__preview {
  min-height: 240px;
}
.storefront-upsell {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.storefront-upsell h3 { margin: 0 0 8px; }
.storefront-upsell p { margin: 0 0 16px; color: var(--text-muted); }
.storefront-upsell a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 650;
}
.storefront-upsell .storefront-builder__preview {
  filter: grayscale(1);
  opacity: .72;
  pointer-events: none;
  margin-bottom: 18px;
}

.sf-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sf-editor__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sf-editor__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sf-editor__sub {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 42ch;
}
.sf-editor__top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sf-editor__lock {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 6%, var(--bg-secondary));
  color: var(--text-muted);
  font-size: 0.92rem;
}
.sf-editor__layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px) {
  .sf-editor__layout { grid-template-columns: 1fr; }
}
.sf-editor__layout.is-locked {
  opacity: 0.85;
}
.sf-editor__sidebar {
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sf-editor__sidebar h3 {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}
.sf-editor__hint {
  margin: -6px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.sf-block-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-block-item {
  display: flex;
  align-items: stretch;
  gap: 6px;
  border-radius: 14px;
  background: var(--card, var(--bg));
  overflow: hidden;
}
.sf-block-item.is-active {
  outline: 2px solid var(--text);
}
.sf-block-item.is-off {
  opacity: 0.55;
}
.sf-block-item__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sf-block-item__type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}
.sf-block-item__name {
  font-weight: 650;
  font-size: 0.95rem;
}
.sf-block-item__ops {
  display: flex;
  flex-direction: column;
  border-left: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.sf-block-item__ops button {
  flex: 1;
  min-width: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
}
.sf-block-item__ops button:hover:not(:disabled) {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.sf-block-item__ops button:disabled {
  opacity: 0.3;
  cursor: default;
}
.sf-editor__style,
.sf-editor__block-props {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.sf-editor__style label,
.sf-editor__block-props label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.sf-editor__style select,
.sf-editor__style input[type="color"],
.sf-editor__block-props input,
.sf-editor__block-props textarea,
.sf-editor__block-props select {
  width: 100%;
  min-height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--card, var(--bg));
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  box-sizing: border-box;
}
.sf-editor__block-props textarea {
  resize: vertical;
  min-height: 72px;
}
.sf-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sf-checks label,
.sf-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 550 !important;
  color: var(--text) !important;
}
.sf-editor__status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.sf-editor__canvas-wrap {
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 12px;
  min-height: 420px;
}
.sf-editor__canvas-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.sf-page {
  background:
    radial-gradient(120% 80% at 10% -10%, color-mix(in srgb, var(--sf-accent) 14%, transparent), transparent 55%),
    var(--bg);
  border-radius: 14px;
  padding: 20px 16px 28px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--sf-font);
}
.sf-page--public {
  background:
    radial-gradient(100% 60% at 50% 0%, color-mix(in srgb, var(--sf-accent) 12%, transparent), transparent 50%),
    transparent;
  padding: 8px 0 24px;
  border-radius: 0;
  min-height: 0;
}
.sf-block {
  border-radius: 16px;
  padding: 8px;
  transition: outline-color 0.15s ease;
}
.sf-page #sfPageCanvas .sf-block,
#sfPageCanvas .sf-block {
  cursor: pointer;
}
#sfPageCanvas .sf-block.is-selected {
  outline: 2px solid var(--sf-accent, var(--text));
  outline-offset: 2px;
}
.sf-block--hero {
  text-align: center;
  padding: 28px 16px 20px;
}
.sf-hero__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid color-mix(in srgb, var(--sf-accent) 35%, transparent);
}
.sf-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
}
.sf-hero__sub {
  margin: 8px auto 0;
  max-width: 36ch;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}
.sf-block__title {
  margin: 0 0 12px;
  font-size: var(--sf-title-size);
  font-weight: 700;
}
.sf-block--cta {
  text-align: center;
  padding: 28px 16px;
  background: color-mix(in srgb, var(--sf-accent) 8%, var(--bg-secondary));
  border-radius: 18px;
}
.sf-block--cta h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
}
.sf-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--sf-accent, var(--text));
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
  border: none;
  cursor: default;
}
a.sf-cta__btn {
  cursor: pointer;
}
.sf-empty {
  margin: 12px 0;
  color: var(--text-muted);
  text-align: center;
}
.sf-beats-grid {
  margin: 0;
}

.cabin-quick-actions {
  padding: 4px 0 4px;
  gap: 10px;
}
.cabin-quick-actions a,
.cabin-quick-actions button {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, var(--bg-secondary)), var(--bg-secondary));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fill-elevated) 8%, transparent);
  transition: transform 0.15s ease, background 0.15s ease;
}
.cabin-quick-actions a:hover,
.cabin-quick-actions button:hover {
  transform: translateY(-1px);
}
.cabin-quick-actions a[data-open-tab],
.cabin-quick-actions .cabin-quick-btn {
  background: var(--text);
  color: var(--bg);
}
.cabin-quick-actions a[data-open-tab]:hover,
.cabin-quick-actions .cabin-quick-btn:hover {
  background: color-mix(in srgb, var(--text) 88%, var(--fill-grouped));
}
.dashboard-grid.redesigned.cabin-dashboard .balance-card {
  background-color: #d4d4d8;
  background-image: url("../images/card.9431afd598bd.png");
  background-size: cover;
  background-position: center;
  color: #1c1c1e;
}
.dashboard-grid.redesigned.cabin-dashboard .balance-card h3,
.dashboard-grid.redesigned.cabin-dashboard .balance-card .cardholder-name,
.dashboard-grid.redesigned.cabin-dashboard .balance-card .stat-number {
  color: #636366;
}
.dashboard-grid.redesigned.cabin-dashboard .balance-card .balance-amount,
.dashboard-grid.redesigned.cabin-dashboard .balance-card .stat-number.balance-amount {
  color: #1c1c1e;
}
.dashboard-grid.redesigned.cabin-dashboard .balance-card .balance-btn.topup-btn {
  background: rgba(28, 28, 30, 0.92) !important;
  color: #ffffff !important;
}
.dashboard-grid.redesigned.cabin-dashboard .balance-card .balance-btn.withdraw-btn {
  background: rgba(255, 255, 255, 0.62) !important;
  color: #1c1c1e !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
}
.profile-tabs .tab-link[href="#storefront"].active {
  color: var(--text);
}

#topUpModal.bp-pay,
.bp-pay#topUpModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  margin: 0 !important;
  background: rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box !important;
  overflow: visible !important;
}
#topUpModal.bp-pay[hidden] {
  display: none !important;
}
#topUpModal.bp-pay:not([hidden]) {
  display: flex !important;
}
#topUpModal.bp-pay > .finance-modal-anchor,
#topUpModal.bp-pay > .bp-pay__anchor,
#topUpModal.bp-pay .finance-modal-anchor,
#topUpModal.bp-pay .bp-pay__anchor,
#withdrawModal .finance-modal-anchor {
  position: relative !important;
  width: min(400px, calc(100vw - 32px)) !important;
  max-width: 400px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-height: none !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  gap: 0 !important;
}
#withdrawModal .finance-modal-anchor {
  width: min(420px, 94vw) !important;
  max-width: 420px !important;
}
.finance-modal-float {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 12px) !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  width: max-content !important;
  max-width: calc(100vw - 32px) !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

.finance-float-item {
  opacity: 0 !important;
  transform: translateY(14px) scale(0.96) !important;
  filter: blur(2px);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.32s ease !important;
  will-change: opacity, transform;
}

.finance-float-item.is-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: none;
}

#topUpModal.bp-pay .finance-float-item[hidden],
#withdrawModal .finance-float-item[hidden],
.finance-float-item[hidden] {
  display: none !important;
}
#topUpModal.bp-pay .bp-pay__sheet,
#withdrawModal .finance-modal-anchor > .finance-modal-card {
  width: 100% !important;
  max-width: 100% !important;
}
#topUpModal.bp-pay .bp-pay__sheet {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 18px !important;
  border: none !important;
  border-radius: 20px !important;
  background: var(--fill-secondary) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-lg) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  font-family: Inter, system-ui, sans-serif !important;
}
#topUpModal.bp-pay .bp-pay__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
#topUpModal.bp-pay .bp-pay__head h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.03em !important;
  color: var(--text) !important;
  line-height: 1.2 !important;
}
#topUpModal.bp-pay .bp-pay__close {
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--fill-tertiary) !important;
  color: var(--text) !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}
#topUpModal.bp-pay .bp-pay__close svg.lucide,
.finance-modal-close svg.lucide,
.sbp-bank-modal-close svg.lucide,
.close-modal-btn svg.lucide,
.ph-download-modal__close svg.lucide,
.toast-notification__close svg.lucide {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
#topUpModal.bp-pay .bp-pay__amount {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  background: var(--fill-elevated) !important;
  border: none !important;
  box-shadow: none !important;
}
#topUpModal.bp-pay .bp-pay__currency {
  color: var(--text-secondary) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}
#topUpModal.bp-pay .bp-pay__input,
#topUpModal.bp-pay #topUpAmount {
  width: 100% !important;
  height: 52px !important;
  min-height: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 1.15rem !important;
  font-weight: 650 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  appearance: textfield;
  -moz-appearance: textfield;
}
#topUpModal.bp-pay .bp-pay__input::-webkit-outer-spin-button,
#topUpModal.bp-pay .bp-pay__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#topUpModal.bp-pay .bp-pay__methods {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
#topUpModal.bp-pay .bp-pay__method {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  border: none !important;
  border-radius: 14px !important;
  background: var(--fill-elevated) !important;
  cursor: pointer !important;
  display: block !important;
  box-shadow: none !important;
}
#topUpModal.bp-pay .bp-pay__radio,
#topUpModal.bp-pay .payment-method-input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
#topUpModal.bp-pay .bp-pay__method-inner {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 52px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  color: var(--text) !important;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  box-sizing: border-box !important;
}
#topUpModal.bp-pay .bp-pay__method-inner img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}
#topUpModal.bp-pay .bp-pay__method.is-selected,
#topUpModal.bp-pay .bp-pay__method:has(.bp-pay__radio:checked),
#topUpModal.bp-pay .bp-pay__method:has(.payment-method-input:checked) {
  background: var(--fill-tertiary) !important;
  box-shadow: inset 0 0 0 1.5px var(--accent) !important;
}
#withdrawModal .payout-req-card.is-selected {
  background: var(--fill-tertiary) !important;
  box-shadow: inset 0 0 0 1.5px var(--accent) !important;
}
#withdrawModal .payout-req-card:not(.is-selected):hover {
  background: color-mix(in srgb, var(--text) 6%, var(--fill-elevated)) !important;
  box-shadow: none !important;
}
#topUpModal.bp-pay .bp-pay__actions {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}
#topUpModal.bp-pay .bp-pay__panel,
#topUpModal.bp-pay .payment-panel {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#topUpModal.bp-pay .bp-pay__panel[hidden],
#topUpModal.bp-pay .payment-panel[hidden] {
  display: none !important;
}
#topUpModal.bp-pay .bp-pay__submit,
#topUpModal.bp-pay #stripeTopUpBtn,
#topUpModal.bp-pay #ruSbpStartBtn {
  width: 100%;
  min-height: var(--control-height-lg);
  margin: 0;
}
#topUpModal.bp-pay .finance-rate-pill:not([hidden]),
.finance-rate-pill:not([hidden]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  background: var(--fill-elevated, var(--card)) !important;
  color: var(--label-secondary, var(--text-secondary)) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

.finance-float-row:not([hidden]) {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  border-radius: 14px !important;
  background: var(--fill-elevated, var(--card)) !important;
  color: var(--label-primary, var(--text)) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.finance-float-row__label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--label-tertiary, var(--text-secondary)) !important;
  line-height: 1.2 !important;
}

.finance-float-row strong,
.finance-float-row strong span {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
}

.finance-rate-pill.is-hidden,
.finance-float-row.is-hidden,
.finance-float-item.is-hidden {
  display: none !important;
  opacity: 0 !important;
}

#topUpModal.bp-pay .bp-pay__rate {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  text-align: center !important;
  color: var(--text-secondary) !important;
  font-size: 0.82rem !important;
  line-height: 1.3 !important;
}
#topUpModal.bp-pay .bp-pay__status {
  text-align: center !important;
  padding: 4px 0 0 !important;
  margin: 0 !important;
}
#topUpModal.bp-pay .bp-pay__status-mark {
  font-size: 1.4rem !important;
  margin-bottom: 6px !important;
}
#topUpModal.bp-pay .bp-pay__status-title {
  font-weight: 650 !important;
  margin-bottom: 10px !important;
}
#topUpModal.bp-pay .bp-pay__link {
  color: var(--text) !important;
  font-size: 0.85rem !important;
}

.profile-header,
.profile-stats,
.profile-section,
.modal-content,
.chart-card,
.payout-req-card,
.beat-card {
  border-color: var(--separator) !important;
}

.modal-content,
.chart-card,
.payout-req-card {
  box-shadow: var(--shadow-md) !important;
  background: var(--fill-elevated);
}

.profile-section {
  background: var(--fill-elevated);
  box-shadow: none !important;
}
