/*
 * Sedatune unified dashboard UI
 * Canonical source: dashboard/index.php
 * Shared by processing, files, profile, commerce, API and support pages.
 */

/* ============================================
   TABLE OF CONTENTS
   1. ROOT VARIABLES & THEME COLORS
   2. GLOBAL & RESET STYLES
   3. FORM ELEMENTS
   4. TOGGLE SWITCH COMPONENT
   5. NUMBER/WRAPPER COMPONENTS
   6. UPLOAD COMPONENTS
     6.1 Upload Card
     6.2 Upload Area
     6.3 Progress Bar
     6.4 File Info
   7. HEADER COMPONENTS
   8. SETTINGS & UTILITIES
   9. PRICING & MODAL COMPONENTS
   10. MOBILE COMPONENTS
       10.1 Mobile Settings Trigger
       10.2 Mobile Settings Popup
       10.3 Custom Popup
   11. AUDIO PLAYER SECTION
   12. RESPONSIVE STYLES
   13. COPYRIGHT AREA
   14. HELPER CLASSES
   ============================================ */

/* --------------------------------------------
   1. ROOT VARIABLES & THEME COLORS
-------------------------------------------- */
:root {
    --bg-body: #ffffff;
    --bg-header: #ffffff;
    --bg-sidebar: #f8f9fa;
    --bg-card: #ffffff;
    --bg-input: #f5f5f5;
    --bg-overlay: rgba(0, 0, 0, 0.05);
    --bg-progress: #e0e0e0;
    
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --text-muted: #999999;
    --text-inverse: #ffffff;
    --text-light: #333333;
    --text-lighter: #666666;
    
    --border-color: #e0e0e0;
    --border-light: #eeeeee;
    --border-dashed: #d0d0d0;
    
    --primary-gradient: linear-gradient(135deg, #5e3bee 0%, #7c5ef7 100%);
    --primary-color: #5e3bee;
    --primary-light: #7c5ef7;
    --primary-rgb: 94, 59, 238;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 6px 25px rgba(0, 0, 0, 0.12);
    
    --success: #28a745;
    --warning: #ffc107;
    --error-color: #ff5555;
    --error-dark: #ff0000;
    
    --white: #ffffff;
    --black: #000000;
    --track-bg: #646464;
    --slider-bg: #444;
    
    --scrollbar-track: #f1f1f1;
    --scrollbar-thumb: #c1c1c1;
}

[data-theme="dark"] {
    --bg-body: #091225;
    --bg-header: #091225;
    --bg-sidebar: #091225;
    --bg-card: #1a1f3a;
    --bg-input: #1a1f3a;
    --bg-overlay: rgba(255, 255, 255, 0.05);
    --bg-progress: #1a1f3a;
    
    --text-primary: #ffffff;
    --text-secondary: #d7d7d7;
    --text-muted: #b5b5b5;
    --text-inverse: #091225;
    --text-light: #ffffff;
    --text-lighter: #d7d7d7;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-dashed: rgba(139, 92, 246, 0.3);
    
    --primary-gradient: linear-gradient(135deg, #5e3bee 0%, #7c5ef7 100%);
    --primary-color: #5e3bee;
    --primary-light: #7c5ef7;
    --primary-rgb: 94, 59, 238;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 6px 25px rgba(0, 0, 0, 0.4);
    
    --success: #2ea84c;
    --warning: #e0a800;
    --error-color: #ff5555;
    --error-dark: #ff0000;
    
    --white: #ffffff;
    --black: #091225;
    --track-bg: #646464;
    --slider-bg: #444;
    
    --scrollbar-track: #1a1f3a;
    --scrollbar-thumb: #3a4556;
}

* {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

/* --------------------------------------------
   2. GLOBAL & RESET STYLES
-------------------------------------------- */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
}

/* --------------------------------------------
   3. FORM ELEMENTS
-------------------------------------------- */
label.option-label,
.slider-labels span,
output {
    color: var(--text-secondary);
}

.range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    outline: none;
    padding: 0;
}

[data-theme="light"] .range {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) no-repeat, #e0e0e0;
    background-size: 100% 100%, 100% 100%;
}

[data-theme="dark"] .range {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) no-repeat, var(--slider-bg);
    background-size: 100% 100%, 100% 100%;
}

.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="light"] .range::-webkit-slider-thumb {
    background: #ffffff;
    border: 3px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .range::-webkit-slider-thumb {
    background: var(--white);
    border: 3px solid var(--primary-color);
}

[data-theme="dark"] .range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="light"] .range::-moz-range-thumb {
    background: #ffffff;
    border: 3px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .range::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .range::-moz-range-thumb {
    background: var(--white);
    border: 3px solid var(--primary-color);
}

[data-theme="dark"] .range::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.range::-moz-range-track {
    height: 6px;
    border-radius: 4px;
}

[data-theme="light"] .range::-moz-range-track {
    background: #e0e0e0;
}

[data-theme="dark"] .range::-moz-range-track {
    background: var(--slider-bg);
}

.range:focus {
    outline: none;
}

[data-theme="light"] .range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(94, 59, 238, 0.2);
}

[data-theme="dark"] .range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(94, 59, 238, 0.3);
}

input[type="checkbox"]:checked ~ label::after,
input[type="radio"]:checked ~ label::after {
    content: unset !important;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: var(--bg-input);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* --------------------------------------------
   4. TOGGLE SWITCH COMPONENT
-------------------------------------------- */
.toggle-switch-dash {
    position: relative !important;
    display: inline-block !important;
    width: 52px !important;
    height: 28px !important;
}

.toggle-switch-dash input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.toggle-slider-dash {
    position: absolute !important;
    cursor: pointer !important;
    inset: 0 !important;
    background: var(--track-bg) !important;
    transition: 0.35s ease !important;
    border-radius: 999px !important;
}

.toggle-slider-dash::before {
    content: "" !important;
    position: absolute !important;
    height: 22px !important;
    width: 22px !important;
    left: 3px !important;
    top: 3px !important;
    background: var(--white) !important;
    border-radius: 50% !important;
    transition: 0.35s ease !important;
}

.toggle-switch-dash input:checked + .toggle-slider-dash {
    background: var(--primary-gradient) !important;
}

.toggle-switch-dash input:checked + .toggle-slider-dash::before {
    transform: translateX(24px) !important;
}

.toggle-switch-dash input:focus + .toggle-slider-dash {
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.3) !important;
}

/* --------------------------------------------
   5. NUMBER/WRAPPER COMPONENTS
-------------------------------------------- */
.number-image-wrapper .single-number {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.number-image-wrapper .single-number.active {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.number-image-wrapper .single-number:hover {
    transform: translateY(-2px) !important;
}

/* --------------------------------------------
   6. UPLOAD COMPONENTS
-------------------------------------------- */
/* 6.1 Upload Card */
.upload-card {
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

[data-theme="light"] .upload-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .upload-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

[data-theme="dark"] .upload-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .upload-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.upload-header {
    text-align: center;
    margin-bottom: 25px;
}

.upload-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon i {
    font-size: 32px;
    color: var(--white);
}

.upload-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

[data-theme="light"] .upload-title {
    color: #1a1a1a;
}

[data-theme="dark"] .upload-title {
    color: #ffffff;
}

.upload-subtitle {
    font-size: 14px;
}

[data-theme="light"] .upload-subtitle {
    color: #6c757d;
}

[data-theme="dark"] .upload-subtitle {
    color: var(--text-muted);
}

/* 6.2 Upload Area */
.upload-area {
    position: relative;
    border: 2px dashed rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: rgba(139, 92, 246, 0.8);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    transform: scale(1.02);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-placeholder p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* 6.3 Progress Bar */
.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-progress);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
}

#progressPercent {
    font-weight: 600;
    color: var(--primary-color);
}

.upload-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.info-item i {
    color: var(--primary-color);
    font-size: 16px;
}

.credit-info {
    margin: 15px 0;
    font-size: 14px;
}

[data-theme="light"] .credit-info {
    color: #555555;
}

[data-theme="dark"] .credit-info {
    color: #d7d7d7;
}

.credit-info strong {
    font-weight: 700;
}

[data-theme="light"] .credit-info strong {
    color: var(--primary-color);
}

[data-theme="dark"] .credit-info strong {
    color: var(--primary-light);
}

/* 6.4 File Info */
.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    background: rgba(var(--primary-rgb), 0.08);
    transition: all 0.2s ease;
}

.file-info:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.12);
}

.file-info > i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.file-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

#fileName {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

#fileSize {
    color: var(--text-muted);
    font-size: 13px;
}

.btn-remove-file {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 100;
}

.btn-remove-file i {
    font-size: 18px;
    pointer-events: none;
}

[data-theme="light"] .btn-remove-file {
    color: #ff5555;
}

[data-theme="light"] .btn-remove-file:hover {
    background: rgba(255, 85, 85, 0.15);
    color: #ff0000;
}

[data-theme="dark"] .btn-remove-file {
    color: var(--error-color);
}

[data-theme="dark"] .btn-remove-file:hover {
    background: rgba(255, 85, 85, 0.15);
    color: var(--error-dark);
}

.btn-remove-file:active {
    transform: scale(0.95);
}

/* --------------------------------------------
   7. HEADER COMPONENTS
-------------------------------------------- */
.header-area-one {
    border-bottom: 1px solid var(--border-color);
}

.header-area-one .header-inner-one {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
}

.header-area-one .left-logo-area {
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-area-one .left-logo-area .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1;
}

.header-area-one .left-logo-area .logo img {
    width: 220px;
    max-width: none;
    height: auto;
    display: block;
}

.header-area-one #collups-left,
.header-area-one .header-right {
    position: relative;
    z-index: 2;
}

.header-credit-balance {
    display: flex;
    align-items: center;
    color: var(--white);
    background: rgba(var(--primary-rgb), 0.15);
    padding: 6px 14px;
    border-radius: 2rem;
    margin: 0 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    white-space: nowrap;
}

.header-credit-balance svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-light);
}

.header-credit-balance .credit-value {
    margin-left: 6px;
    color: #f0e6ff;
}

[data-theme="dark"] .header-credit-balance {
    background: rgba(124, 94, 247, 0.2);
}

.left-side-bar {
    background-color: var(--bg-sidebar);
}

/* --------------------------------------------
   8. SETTINGS & UTILITIES
-------------------------------------------- */
.hidden-generate-btn {
    display: none !important;
}

.option-label-disabled {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-disabled {
    opacity: 0.6;
}

.disabled-setting-text,
.coming-soon-text {
    color: var(--text-muted);
}

.coming-soon-text {
    font-size: 14px;
    font-style: italic;
}

.ask-for-audio {
    display: flex;
    justify-content: center;
    width: 100%;
}

.button-wrapper-generator {
    text-align: center;
}

[data-theme="dark"] .image-generatore-right-sidebar-content .single-diamention .nice-select-wrap .drop::after {
    width: 2rem;
    height: 2rem;
}

/* --------------------------------------------
   9. PRICING & MODAL COMPONENTS
-------------------------------------------- */
.single-pricing-single-two {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.single-pricing-single-two.active {
    border: 2px solid var(--primary-color);
}

.modal-content {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.modal-header .btn-close {
    background-color: var(--text-secondary);
    opacity: 0.7;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.user_information_main_wrapper,
.notification_main_wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------
   10. MOBILE COMPONENTS
-------------------------------------------- */
.mobile-settings-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.mobile-settings-trigger i {
    color: var(--primary-color);
}

.mobile-settings-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.25s ease;
}

.mobile-settings-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-settings-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.mobile-settings-popup__panel {
    position: absolute;
    right: 0;
    top: 0;
    width: min(92vw, 380px);
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 18px 16px 24px;
}

.mobile-settings-popup.is-open .mobile-settings-popup__panel {
    transform: translateX(0);
}

[data-theme="light"] .mobile-settings-popup__panel {
    background: #ffffff;
    border-left: 1px solid #e0e0e0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .mobile-settings-popup__panel {
    background: var(--bg-card);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
}

.mobile-settings-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid;
}

[data-theme="light"] .mobile-settings-popup__header {
    border-bottom-color: #e0e0e0;
}

[data-theme="dark"] .mobile-settings-popup__header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.mobile-settings-popup__header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

[data-theme="light"] .mobile-settings-popup__header h5 {
    color: #1a1a1a;
}

[data-theme="dark"] .mobile-settings-popup__header h5 {
    color: #ffffff;
}

.mobile-settings-popup__close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="light"] .mobile-settings-popup__close {
    background: #f0f0f0;
    color: #333333;
}

[data-theme="light"] .mobile-settings-popup__close:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

[data-theme="dark"] .mobile-settings-popup__close {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

[data-theme="dark"] .mobile-settings-popup__close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.mobile-settings-popup__body {
    font-size: 15px;
    line-height: 1.5;
}

.mobile-settings-popup__body .image-diamention {
    margin-bottom: 28px;
    padding: 0 4px;
}

.mobile-settings-popup__body .image-diamention:last-child {
    margin-bottom: 0;
}

.mobile-settings-popup__body .image-diamention .title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="light"] .mobile-settings-popup__body .image-diamention .title {
    color: #1a1a2e;
}

[data-theme="dark"] .mobile-settings-popup__body .image-diamention .title {
    color: #ffffff;
}

.mobile-settings-popup__body .image-diamention .title i {
    font-size: 16px;
    color: var(--primary-color);
}

.mobile-settings-popup__body .option-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

[data-theme="light"] .mobile-settings-popup__body .option-label {
    color: #2d3748;
}

[data-theme="dark"] .mobile-settings-popup__body .option-label {
    color: #e2e8f0;
}

.mobile-settings-popup__body .slider-labels {
    margin-top: 8px !important;
}

.mobile-settings-popup__body .slider-labels span {
    font-size: 12px;
    font-weight: 500;
}

[data-theme="light"] .mobile-settings-popup__body .slider-labels span {
    color: #718096;
}

[data-theme="dark"] .mobile-settings-popup__body .slider-labels span {
    color: #a0aec0;
}

.mobile-settings-popup__body .number-image-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.mobile-settings-popup__body .single-number {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="light"] .mobile-settings-popup__body .single-number {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .mobile-settings-popup__body .single-number:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

[data-theme="light"] .mobile-settings-popup__body .single-number.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

[data-theme="dark"] .mobile-settings-popup__body .single-number {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mobile-settings-popup__body .single-number:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

[data-theme="dark"] .mobile-settings-popup__body .single-number.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.mobile-settings-popup__body .nice-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

[data-theme="light"] .mobile-settings-popup__body .nice-select {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="light"] .mobile-settings-popup__body .nice-select:hover {
    border-color: var(--primary-color);
    background-color: #f1f5f9;
}

[data-theme="dark"] .mobile-settings-popup__body .nice-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .mobile-settings-popup__body .nice-select:hover {
    border-color: rgba(94, 59, 238, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.mobile-settings-popup__body .disc {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 12px;
}

[data-theme="light"] .mobile-settings-popup__body .disc {
    color: #64748b;
}

[data-theme="dark"] .mobile-settings-popup__body .disc {
    color: #94a3b8;
}

.mobile-settings-popup__body .setting-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mobile-settings-popup__body .option-label-disabled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-settings-popup__body .disabled-setting-text {
    font-size: 14px;
    font-weight: 500;
}

[data-theme="light"] .mobile-settings-popup__body .disabled-setting-text {
    color: #94a3b8;
}

[data-theme="dark"] .mobile-settings-popup__body .disabled-setting-text {
    color: #64748b;
}

.mobile-settings-popup__body .coming-soon-text {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

[data-theme="light"] .mobile-settings-popup__body .coming-soon-text {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .mobile-settings-popup__body .coming-soon-text {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.mobile-settings-popup__body .pt--20 {
    padding-top: 20px;
    margin-top: 10px;
}

[data-theme="light"] .mobile-settings-popup__panel::-webkit-scrollbar {
    width: 5px;
}

[data-theme="light"] .mobile-settings-popup__panel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

[data-theme="light"] .mobile-settings-popup__panel::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 10px;
}

[data-theme="dark"] .mobile-settings-popup__panel::-webkit-scrollbar {
    width: 5px;
}

[data-theme="dark"] .mobile-settings-popup__panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

[data-theme="dark"] .mobile-settings-popup__panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* 10.3 Custom Popup */
.custom-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

.custom-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.custom-popup__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 420px);
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: all 0.25s ease;
    overflow: hidden;
}

.custom-popup.is-open .custom-popup__panel {
    transform: translate(-50%, -50%) scale(1);
}

.custom-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
}

.custom-popup__header h5 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}

.custom-popup__close {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
}

.custom-popup__body {
    padding: 22px 18px 12px;
    text-align: center;
}

.custom-popup__icon {
    font-size: 30px;
    margin-bottom: 12px;
}

/*.custom-popup.success .custom-popup__icon::before { content: "✅"; }*/
/*.custom-popup.error .custom-popup__icon::before { content: "⚠️"; }*/
/*.custom-popup.info .custom-popup__icon::before { content: "ℹ️"; }*/

.custom-popup__body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
}

.custom-popup__footer {
    padding: 16px 18px 20px;
    display: flex;
    justify-content: center;
}

.custom-popup__btn {
    min-width: 140px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

body.popup-open {
    overflow: hidden;
}

/* --------------------------------------------
   11. AUDIO PLAYER SECTION - CARD STYLE
------------------------------------------- */
#audioPlayerSection {
    margin-top: 20px;
    width: 100%;
}

#audioPlayerSection .audio-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    background: var(--bg-overlay);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Light mode card */
[data-theme="light"] #audioPlayerSection .audio-item {
    border: 1px solid #e8e8e8;
    background-color: #fafafa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Dark mode card */
[data-theme="dark"] #audioPlayerSection .audio-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.03);
}

#audioPlayerSection .audio-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

#audioPlayerSection .audio-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

#audioPlayerSection .audio-file-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Light mode icon */
[data-theme="light"] #audioPlayerSection .audio-file-icon {
    background: rgba(94, 59, 238, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(94, 59, 238, 0.2);
}

/* Dark mode icon */
[data-theme="dark"] #audioPlayerSection .audio-file-icon {
    background: rgba(94, 59, 238, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(94, 59, 238, 0.3);
}

#audioPlayerSection .audio-file-text {
    flex: 1;
    min-width: 0;
}

#audioPlayerSection .audio-file-name {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

[data-theme="light"] #audioPlayerSection .audio-file-name {
    color: #1a1a1a;
}

[data-theme="dark"] #audioPlayerSection .audio-file-name {
    color: #ffffff;
}

#audioPlayerSection .audio-file-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
}

[data-theme="light"] #audioPlayerSection .audio-file-meta {
    color: #6c757d;
}

[data-theme="dark"] #audioPlayerSection .audio-file-meta {
    color: #b5b5b5;
}

#audioPlayerSection .audio-file-actions {
    flex-shrink: 0;
}

/* Download button */
#audioPlayerSection .audio-btn-download.audio-btn-download {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: #1a1a2e !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    gap: 8px !important;
    white-space: nowrap;
}

#audioPlayerSection .audio-btn-download.audio-btn-download:hover {
    background: #2d2d4e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

#audioPlayerSection .audio-btn-download.audio-btn-download:active {
    transform: translateY(0) !important;
}

[data-theme="dark"] #audioPlayerSection .audio-btn-download.audio-btn-download {
    background: linear-gradient(135deg, #5e3bee 0%, #7c5ef7 100%) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #audioPlayerSection .audio-btn-download.audio-btn-download:hover {
    background: #4a2fc9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(94, 59, 238, 0.3) !important;
}

#audioPlayerSection .audio-player-box {
    width: 100%;
    margin-top: 12px;
}

#audioPlayerSection audio {
    width: 100%;
    border-radius: 8px;
    outline: none;
    display: block;
}

/* Responsive */
@media (max-width: 550px) {
    #audioPlayerSection .audio-item-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #audioPlayerSection .audio-file-actions {
        width: 100%;
    }
    
    #audioPlayerSection .audio-btn-download.audio-btn-download {
        width: 100%;
        white-space: normal;
    }
}
/* --------------------------------------------
   12. RESPONSIVE STYLES
-------------------------------------------- */
@media (max-width: 768px) {
    .upload-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .audio-player {
        padding: 12px 15px;
    }
    
    .audio-player .controls {
        gap: 10px;
    }
    
    .toggle-play {
        width: 32px;
        height: 32px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .audio-player .time {
        font-size: 11px;
    }
}

/* Tablet and Mobile - Show mobile trigger (up to 1199px) */
@media (max-width: 1199px) {
    .mobile-settings-trigger {
        display: flex !important;
    }
    
    .desktop-settings-sidebar {
        display: none !important;
    }
}

/* Desktop - Hide mobile trigger, show desktop sidebar (1200px and above) */
@media (min-width: 1200px) {
    .mobile-settings-trigger {
        display: none !important;
    }
    
    .desktop-settings-sidebar {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .volume-slider {
        display: none;
    }
    
    .audio-player .controls {
        justify-content: center;
    }
}

/* Responsive Header */
@media (min-width: 1200px) {
    .header-area-one .header-inner-one {
        padding: 0 40px;
    }
    
    .header-area-one .left-logo-area .logo img {
        width: 220px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .header-area-one .header-inner-one {
        padding: 0 24px;
        min-height: 80px;
    }
    
    .header-area-one .left-logo-area .logo img {
        width: 180px;
    }
    
    .header-credit-balance {
        padding: 4px 12px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .header-area-one .header-inner-one {
        padding: 0 16px;
        min-height: 70px;
    }
    
    .header-area-one .left-logo-area {
        width: 100% !important;
        justify-content: flex-end;
        flex-direction: row-reverse;
        gap: 12px;
    }
    
    .header-area-one .left-logo-area .logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0;
    }
    
    .header-area-one .left-logo-area .logo img {
        width: 150px;
    }
    
    .header-area-one #collups-left {
        order: 1;
    }
    
    .header-credit-balance {
        padding: 4px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-credit-balance .credit-value {
        display: none;
    }
    
    .header-credit-balance {
        padding: 6px;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        justify-content: center;
    }
}
/* --------------------------------------------
   13. COPYRIGHT AREA
------------------------------------------- */
.copyright-area-bottom {
    padding: 20px !important;
    text-align: center !important;
    font-size: 14px !important;
    border-top: 1px solid !important;
}

[data-theme="light"] .copyright-area-bottom {
    color: #4a5568 !important;
    border-top-color: #cbd5e0 !important;
}

[data-theme="dark"] .copyright-area-bottom {
    color: #b5b5b5 !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.copyright-area-bottom p {
    margin: 0 !important;
}

[data-theme="light"] .copyright-area-bottom p {
    color: #4a5568 !important;
}

[data-theme="dark"] .copyright-area-bottom p {
    color: #b5b5b5 !important;
}

/* --------------------------------------------
   14. HELPER CLASSES
------------------------------------------- */
.rts-btn.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rts-btn.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rts-btn.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile slider specific styles */
#mobileSlider.range {
    width: 100%;
}

/* Ensure remove file button is clickable */
.file-info {
    position: relative;
    z-index: 1;
}

#removeFileBtn {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.loudness-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #111;
    color: #fff;
    font-size: 14px;
    outline: none;
    margin-top: 10px;
}

.loudness-select option {
    background: #111;
    color: #fff;
}

/* Scrollable settings panel */
.right-side-bar-new-chat-option,
.chatbot .right-side-bar-new-chat-option {
    max-height: calc(100vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

/* Better scrollbar */
.right-side-bar-new-chat-option::-webkit-scrollbar {
    width: 6px;
}

.right-side-bar-new-chat-option::-webkit-scrollbar-track {
    background: transparent;
}

.right-side-bar-new-chat-option::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.right-side-bar-new-chat-option::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}



                            .custom-quality-select {
                                width: 100%;
                                padding: 12px 20px;
                                border: 1px solid #e0e0e0;
                                border-radius: 8px;
                                background-color: #fff;
                                font-size: 16px;
                                color: #333;
                                appearance: none;
                                -webkit-appearance: none;
                                -moz-appearance: none;
                                background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%235e3bee" d="M6 8L1 3h10z"/></svg>');
                                background-repeat: no-repeat;
                                background-position: left 15px center;
                                padding-left: 40px; /* جای فلش */
                                cursor: pointer;
                            }
                            
                            /* اگر RTL هستید (مثل فارسی) باید جهت‌ها برعکس شود */
                            html[dir="rtl"] .custom-quality-select {
                                background-position: right 15px center;
                                padding-right: 40px;
                                padding-left: 20px;
                            }
                        

/* ===== SHARED UTILITY CLASSES (replaces inline styles) ===== */
.st-hidden { display: none !important; }
.st-width-full { width: 100% !important; }
.st-balance-icon { vertical-align: middle; margin-inline-end: 6px; }
.st-credit-breakdown { display: block; margin-top: 6px; opacity: .75; }
.st-flex-between-center { display: flex; justify-content: space-between; align-items: center; }
.st-label-space { display: block; margin-bottom: 10px; }
.st-slider-labels { display: flex; justify-content: space-between; font-size: 13px; margin-top: 5px; }
.st-help-text { font-size: 13px; opacity: .75; }
.st-empty-state { color: var(--text-muted, #999); text-align: center; }
body.sedatune-dashboard #wpadminbar { display: none !important; }
html:has(body.sedatune-dashboard) { margin-top: 0 !important; }
.dashboard-page-footer { width: 100%; }

/* ===== AUDIO FILES PAGE ===== */
label.option-label, .slider-labels span {
        color: var(--text-secondary);
    }
.audio-item {
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 16px;
        background: var(--bg-card);
        transition: all 0.3s ease !important; /* hover آيتم */
    }
[data-theme="light"] .audio-item {
        border: 1px solid #e8e8e8;
        background-color: #fafafa;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
[data-theme="light"] .audio-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 2px 8px rgba(94, 59, 238, 0.1);
    }
[data-theme="dark"] .audio-item {
        border: 1px solid rgba(255, 255, 255, 0.08);
        background-color: rgba(255, 255, 255, 0.03);
    }
[data-theme="dark"] .audio-item:hover {
        border-color: rgba(94, 59, 238, 0.5);
        background-color: rgba(94, 59, 238, 0.05);
    }
.audio-summary {
        margin-bottom: 18px;
        padding: 12px 16px;
        border-radius: 12px;
        background: var(--bg-card);
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid var(--border-color);
    }
[data-theme="light"] .audio-summary {
        background-color: #f5f5f5;
        border: 1px solid #e0e0e0;
    }
[data-theme="dark"] .audio-summary {
        background-color: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
.audio-file-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }
[data-theme="light"] .audio-file-icon {
        background: rgba(94, 59, 238, 0.1);
        color: var(--primary-color);
        border: 1px solid rgba(94, 59, 238, 0.2);
    }
[data-theme="dark"] .audio-file-icon {
        background: rgba(94, 59, 238, 0.15);
        color: var(--primary-light);
        border: 1px solid rgba(94, 59, 238, 0.3);
    }
[data-theme="light"] .info-item {
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
    }
[data-theme="light"] .info-item:hover {
        border-color: var(--primary-color);
        background: #f0f2f5;
    }
[data-theme="dark"] .info-item {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
[data-theme="dark"] .info-item:hover {
        border-color: rgba(94, 59, 238, 0.5);
        background: rgba(94, 59, 238, 0.05);
    }
.header-area-one #collups-left,
    .header-area-one .header-right {
        position: relative;
        z-index: 2;
    }
.upload-header h3.upload-title,
    .upload-header .upload-title {
        color: var(--text-primary) !important;
    }
[data-theme="light"] .upload-header h3.upload-title,
    [data-theme="light"] .upload-header .upload-title {
        color: #1a1a1a !important;
    }
[data-theme="dark"] .upload-header h3.upload-title,
    [data-theme="dark"] .upload-header .upload-title {
        color: #ffffff !important;
    }
.profile-dashboard-content {
        padding: 20px;
    }
.profile-section-subtitle {
        margin: 6px 0 0;
        font-size: 13px;
        color: var(--text-muted);
    }
.info-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
.info-item.full-width {
        grid-column: 1 / -1;
    }
.info-label {
        display: block;
        font-size: 12px;
        margin-bottom: 8px;
        color: var(--text-secondary);
    }
.info-value {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
    }
.audio-summary-label {
        color: var(--text-secondary);
    }
.audio-summary-value {
        color: var(--primary-color);
    }
.audio-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
.audio-item-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 12px;
    }
.audio-file-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
.audio-file-name {
        margin: 0 0 6px;
        font-size: 14px;
        color: var(--text-primary);
    }
.audio-file-meta {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        font-size: 12px;
        color: var(--text-muted);
    }
.audio-file-actions {
        flex-shrink: 0;
    }
.audio-btn-download.audio-btn-download {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        background: #1a1a2e !important;
        color: #ffffff !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        border: none !important;
        gap: 8px !important;
    }
.audio-btn-download.audio-btn-download:hover {
        background: #2d2d4e !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
.audio-btn-download.audio-btn-download:active {
        transform: translateY(0) !important;
    }
[data-theme="dark"] .audio-btn-download.audio-btn-download {
        background: linear-gradient(135deg, #5e3bee 0%, #7c5ef7 100%) !important;
        color: #ffffff !important;
    }
[data-theme="dark"] .audio-btn-download.audio-btn-download:hover {
        background: #4a2fc9 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(94, 59, 238, 0.3) !important;
    }
[data-theme="dark"] .audio-btn-download.audio-btn-download:active {
        transform: translateY(0) !important;
    }
.audio-player-box audio {
        width: 100%;
    }
.audio-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 7px;
                min-height: 38px;
                padding: 9px 14px;
                border-radius: 10px;
                border: 1px solid transparent;
                font-size: 13px;
                font-weight: 600;
                line-height: 1;
                text-decoration: none;
                cursor: pointer;
                transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease !important;
                white-space: nowrap;
            }
.audio-btn:hover {
                transform: translateY(-1px);
                text-decoration: none;
            }
.audio-btn-download {
                color: #fff !important;
                background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
                box-shadow: 0 8px 22px rgba(var(--primary-rgb), .25);
            }
.audio-btn-download:hover {
                color: #fff !important;
                box-shadow: 0 10px 26px rgba(var(--primary-rgb), .35);
            }
.audio-btn-delete {
                color: #ff5d6c;
                background: rgba(255, 93, 108, .08);
                border-color: rgba(255, 93, 108, .22);
                box-shadow: none;
            }
.audio-btn-delete:hover {
                color: #fff;
                background: linear-gradient(135deg, #ff4757, #d63031);
                border-color: transparent;
                box-shadow: 0 10px 24px rgba(214, 48, 49, .25);
            }
.audio-btn-delete i, .audio-btn-download i {
                font-size: 13px;
            }
.sedatune-delete-modal .modal-dialog {
                max-width: 430px;
            }
.sedatune-delete-modal .modal-content {
                border: 1px solid var(--border-color);
                border-radius: 22px;
                overflow: hidden;
                background: var(--bg-card);
                color: var(--text-primary);
                box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
            }
.sedatune-delete-modal .modal-body {
                padding: 30px 28px 26px;
                text-align: center;
            }
.delete-modal-icon {
                width: 64px;
                height: 64px;
                margin: 0 auto 18px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 22px;
                color: #ff4757;
                background: rgba(255, 71, 87, .1);
                border: 1px solid rgba(255, 71, 87, .2);
                font-size: 26px;
            }
.delete-modal-title {
                margin: 0 0 10px;
                font-size: 20px;
                font-weight: 800;
                color: var(--text-primary);
            }
.delete-modal-desc {
                margin: 0 auto 14px;
                max-width: 330px;
                color: var(--text-secondary);
                font-size: 14px;
                line-height: 1.8;
            }
.delete-modal-file {
                display: none;
                margin: 14px auto 0;
                padding: 10px 12px;
                border-radius: 12px;
                background: var(--bg-input);
                color: var(--text-primary);
                font-size: 13px;
                word-break: break-word;
                border: 1px solid var(--border-color);
            }
.delete-modal-actions {
                display: flex;
                gap: 10px;
                justify-content: center;
                margin-top: 24px;
            }
.delete-modal-btn {
                min-width: 120px;
                height: 42px;
                border-radius: 999px;
                border: 0;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                font-size: 14px;
                font-weight: 700;
                cursor: pointer;
                transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease !important;
            }
.delete-modal-btn:hover {
                transform: translateY(-1px);
            }
.delete-modal-btn-cancel {
                background: var(--bg-input);
                color: var(--text-primary);
                border: 1px solid var(--border-color);
            }
.delete-modal-btn-danger {
                background: linear-gradient(135deg, #ff4757, #d63031);
                color: #fff;
                box-shadow: 0 10px 25px rgba(214, 48, 49, .25);
            }
.delete-modal-btn-danger.is-loading {
                opacity: .75;
                pointer-events: none;
            }
.delete-modal-btn-danger.is-loading i {
                animation: sedatuneSpin .8s linear infinite;
            }
@keyframes sedatuneSpin {
                from { transform: rotate(0deg); }
                to { transform: rotate(360deg); }
            }
.sedatune-toast {
                position: fixed;
                left: 24px;
                bottom: 24px;
                z-index: 99999;
                min-width: 260px;
                max-width: 360px;
                padding: 14px 16px;
                border-radius: 16px;
                display: flex;
                align-items: center;
                gap: 10px;
                background: var(--bg-card);
                color: var(--text-primary);
                border: 1px solid var(--border-color);
                box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
                transform: translateY(20px);
                opacity: 0;
                pointer-events: none;
                transition: opacity .22s ease, transform .22s ease !important;
            }
.sedatune-toast.is-visible {
                opacity: 1;
                transform: translateY(0);
            }
.sedatune-toast.success i { color: var(--success); }
.sedatune-toast.error i { color: #ff4757; }
html[dir="rtl"] .sedatune-toast {
                left: auto;
                right: 24px;
            }

/* ===== PROFILE PAGE ===== */
.range::-webkit-slider-thumb,
.range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary-color);
    cursor: pointer;
}
.btn-remove-file:hover {
    background: rgba(255, 85, 85, 0.15);
    color: var(--error-color);
}
.settings-section {
    margin-bottom: 28px;
}
.settings-section:last-child {
    margin-bottom: 0;
}
.settings-section-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--text-primary);
}
.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.audio-btn-secondary {
    background: var(--bg-overlay);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
body.mobile-settings-open {
    overflow: hidden;
}

/* ===== COMMERCE / B2B PAGES INSIDE THE SHARED DASHBOARD ===== */
body.st-page-commerce {
    --stc-bg: var(--bg-body);
    --stc-panel: var(--bg-card);
    --stc-panel-2: var(--bg-input);
    --stc-text: var(--text-primary);
    --stc-muted: var(--text-secondary);
    --stc-line: var(--border-color);
    --stc-accent: var(--primary-color);
    --stc-accent-2: var(--primary-light);
}

.dashboard-commerce-card {
    min-height: auto;
}

.dashboard-commerce-header {
    margin-bottom: 0;
}

.dashboard-commerce-content {
    padding-top: 4px;
}

body.st-page-commerce .stc-pricing,
body.st-page-commerce .stc-checkout,
body.st-page-commerce .stc-orders,
body.st-page-commerce .stc-api-panel,
body.st-page-commerce .stc-support,
body.st-page-commerce .stc-invoice {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--text-primary);
}

body.st-page-commerce .stc-pricing__intro,
body.st-page-commerce .stc-section-head {
    margin-bottom: 22px;
}

body.st-page-commerce .stc-pricing__intro h2,
body.st-page-commerce .stc-section-head h2,
body.st-page-commerce .stc-checkout__summary h2 {
    font-size: 22px;
    color: var(--text-primary);
}

body.st-page-commerce .stc-card,
body.st-page-commerce .stc-form,
body.st-page-commerce .stc-api-key-box,
body.st-page-commerce .stc-usage-card,
body.st-page-commerce .stc-metric,
body.st-page-commerce .stc-company-box,
body.st-page-commerce .stc-invoice {
    background: var(--bg-input);
    border-color: var(--border-color);
    box-shadow: none;
}

body.st-page-commerce .stc-card {
    min-height: 390px;
    border-radius: 14px;
    padding: 22px;
}

body.st-page-commerce .stc-card__head h3,
body.st-page-commerce .stc-card__credit strong,
body.st-page-commerce .stc-card__price strong,
body.st-page-commerce .stc-field span,
body.st-page-commerce .stc-company-box h3,
body.st-page-commerce .stc-table th,
body.st-page-commerce .stc-metric strong,
body.st-page-commerce .stc-api-key-box h3,
body.st-page-commerce .stc-usage-card__head h3 {
    color: var(--text-primary);
}

body.st-page-commerce .stc-card__type,
body.st-page-commerce .stc-card__price span,
body.st-page-commerce .stc-card__features,
body.st-page-commerce .stc-pricing__intro p,
body.st-page-commerce .stc-section-head p,
body.st-page-commerce .stc-table td,
body.st-page-commerce .stc-metric span,
body.st-page-commerce .stc-api-key-box p,
body.st-page-commerce .stc-usage-card__head,
body.st-page-commerce .stc-usage-card__meta {
    color: var(--text-secondary);
}

body.st-page-commerce .stc-btn {
    min-height: 42px;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), .2);
}

body.st-page-commerce .stc-table-wrap {
    border-color: var(--border-color);
    border-radius: 12px;
}

body.st-page-commerce .stc-table {
    background: transparent;
}

body.st-page-commerce .stc-table th,
body.st-page-commerce .stc-table td {
    border-color: var(--border-color);
}

body.st-page-commerce .stc-field input,
body.st-page-commerce .stc-field textarea,
body.st-page-commerce .stc-field select {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.st-page-commerce .stc-progress {
    background: var(--bg-progress);
}

body.st-page-commerce .stc-progress span {
    background: var(--primary-gradient);
}

@media (max-width: 767px) {
    .dashboard-commerce-content {
        padding: 0;
    }

    body.st-page-commerce .stc-card {
        min-height: auto;
    }
}
