/* =========================================
   BEAT SHOP STYLES - BeatStars Inspired
   ========================================= */

/* Shop Header */
.tm-shop-header {
    background: linear-gradient(135deg, #0d0d0d 0%, #000 100%);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #222;
}

/* Search & Filters */
.tm-shop-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.tm-search-box {
    flex: 1;
    min-width: 300px;
}

#tm-beat-search {
    width: 100%;
    padding: 15px 20px;
    background: #111;
    border: 2px solid #333;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

#tm-beat-search:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.tm-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tm-filter-select {
    padding: 12px 20px;
    background: #111;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
    -webkit-appearance: none;
    /* Modern browsers */
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' 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");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.tm-filter-select option {
    background-color: #111;
    color: #fff;
    padding: 10px;
}

.tm-filter-select:hover {
    border-color: #8B5CF6;
}

.tm-filter-select:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.tm-btn-reset {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #333;
    border-radius: 8px;
    color: #999;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-btn-reset:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

/* Beats Grid */
.tm-beats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Beat Card */
.tm-beat-card {
    background: linear-gradient(145deg, #141414 0%, #0a0a0a 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #222;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tm-beat-card:hover {
    transform: translateY(-8px);
    border-color: #8B5CF6;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
}

/* Beat Artwork */
.tm-beat-artwork {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0a0a0a;
}

.tm-beat-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.tm-beat-card:hover .tm-beat-artwork img {
    transform: scale(1.1);
}

.tm-beat-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

/* Play Button - Always Visible */
.tm-beat-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(139, 92, 246, 0.85);
    /* Slightly more transparent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: none;
    outline: none;
}

.tm-beat-card:hover .tm-beat-play-btn {
    background: rgba(139, 92, 246, 1);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5);
    transform: translate(-50%, -50%) scale(1.05);
}

.tm-beat-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15) !important;
}

.tm-beat-play-btn.playing {
    background: #8B5CF6;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(139, 92, 246, 0);
    }
}

/* Beat Info */
.tm-beat-info {
    padding: 20px;
}

.tm-beat-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.tm-beat-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.tm-beat-title a:hover {
    color: #8B5CF6;
}

/* Beat Meta */
.tm-beat-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tm-meta-item {
    font-size: 0.85rem;
    color: #999;
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tm-meta-genre {
    font-size: 0.85rem;
    color: #8B5CF6;
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Beat Actions */
.tm-beat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #222;
}

.tm-beat-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B5CF6;
}

.tm-beat-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tm-beat-buttons .button,
.tm-beat-buttons .added_to_cart {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-beat-buttons .button:hover,
.tm-beat-buttons .added_to_cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.tm-btn-details {
    padding: 10px 20px;
    background: transparent;
    color: #8B5CF6;
    border: 2px solid #8B5CF6;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-btn-details:hover {
    background: #8B5CF6;
    color: #fff;
}

/* No Products */
.tm-no-products {
    text-align: center;
    padding: 100px 20px;
    color: #666;
}

.tm-no-products svg {
    margin-bottom: 30px;
    opacity: 0.3;
}

.tm-no-products h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

/* Pagination */
.tm-shop-pagination {
    margin: 60px 0;
}

.tm-shop-pagination .page-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.tm-shop-pagination .page-numbers li {
    display: inline-block;
}

.tm-shop-pagination .page-numbers a,
.tm-shop-pagination .page-numbers span {
    display: block;
    padding: 12px 20px;
    background: #111;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.tm-shop-pagination .page-numbers a:hover,
.tm-shop-pagination .page-numbers .current {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: #fff;
}

/* Global Audio Player (Fixed Bottom) */
.tm-global-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid #333;
    padding: 15px 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-global-player.active {
    transform: translateY(0);
}

.tm-player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.tm-player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.tm-player-artwork {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.tm-player-text {
    display: flex;
    flex-direction: column;
}

.tm-player-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.tm-player-meta {
    font-size: 0.8rem;
    color: #999;
}

.tm-player-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tm-player-play {
    width: 40px;
    height: 40px;
    background: #8B5CF6;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.tm-player-play:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5);
}

.tm-player-progress {
    flex: 1;
}

.tm-progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.tm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
}

.tm-player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999;
}

.tm-player-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.tm-player-close:hover {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tm-shop-controls {
        flex-direction: column;
    }

    .tm-search-box {
        width: 100%;
    }

    .tm-filters {
        width: 100%;
        flex-direction: column;
    }

    .tm-filter-select,
    .tm-btn-reset {
        width: 100%;
    }

    .tm-beats-grid {
        grid-template-columns: 1fr;
    }

    .tm-beat-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .tm-beat-buttons {
        width: 100%;
    }

    .tm-beat-buttons .button,
    .tm-beat-buttons .added_to_cart,
    .tm-btn-details {
        flex: 1;
        text-align: center;
    }

    .tm-player-content {
        flex-direction: column;
        gap: 15px;
    }

    .tm-player-info {
        width: 100%;
    }

    .tm-player-controls {
        width: 100%;
    }
}

/* =========================================
   SINGLE PRODUCT PAGE STYLES
   ========================================= */

.tm-single-product-page {
    padding: 120px 0;
}

.tm-product-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Column */
.tm-product-media {
    position: sticky;
    top: 120px;
}

.tm-product-artwork {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    margin-bottom: 30px;
}

.tm-product-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-single-player {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tm-single-play-btn {
    background: #8B5CF6;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tm-single-play-btn:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.tm-single-play-btn span {
    font-size: 0.9rem;
}

.tm-single-wave {
    flex: 1;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.5;
}

.tm-single-wave span {
    flex: 1;
    background: #8B5CF6;
    height: 100%;
    border-radius: 2px;
    animation: wave 1s infinite ease-in-out;
}

.tm-single-wave span:nth-child(odd) {
    height: 60%;
}

.tm-single-wave span:nth-child(even) {
    height: 30%;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1);
    }
}

.tm-beat-meta-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tm-tag {
    background: #222;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ccc;
    border: 1px solid #333;
}

/* Right Column */
.tm-product-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
}

.tm-product-description {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 40px;
    line-height: 1.6;
}

.tm-section-heading {
    border-bottom: 2px solid #222;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #fff;
    display: inline-block;
}

/* License Selector Customization */
.tm-license-selector-area {
    background: #111;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #333;
    margin-bottom: 40px;
}

.variations {
    width: 100%;
    margin-bottom: 20px;
}

.variations label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.variations select {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.woocommerce-variation-price,
.tm-simple-price {
    font-size: 2rem;
    color: #8B5CF6;
    font-weight: 700;
    margin-bottom: 20px;
}

.single_add_to_cart_button {
    width: 100%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Accordions */
.tm-product-extras details {
    background: #111;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #333;
    overflow: hidden;
}

.tm-product-extras summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #ddd;
    list-style: none;
    /* Hide default arrow */
    position: relative;
}

.tm-product-extras summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
}

.tm-product-extras details[open] summary::after {
    content: '-';
}

.details-content {
    padding: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .tm-product-layout {
        grid-template-columns: 1fr;
    }

    .tm-product-media {
        position: static;
        margin-bottom: 40px;
    }

    .tm-product-title {
        font-size: 2rem;
    }
}



/* =========================================
   DOWNLOAD MODAL & FILTER FIXES
   ========================================= */

/* Filter Fixes */
.tm-filter-select {
    background-color: #111 !important;
    color: #fff !important;
}

/* Free Download Button */
.tm-btn-download {
    background: transparent;
    border: 1px solid #8B5CF6;
    color: #8B5CF6;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.tm-btn-download:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.tm-single-download {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.tm-download-text {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
}

.tm-btn-download.large {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1rem;
    border: 1px dashed #444;
    color: #aaa;
}

.tm-btn-download.large:hover {
    border-color: #8B5CF6;
    color: #fff;
    background: rgba(139, 92, 246, 0.05);
}

/* Modal Styles */
.tm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    /* JS will toggle this */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tm-modal.active {
    display: flex !important;
}

.tm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.tm-modal-content {
    position: relative;
    background: #111;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.tm-modal-close:hover {
    color: #fff;
}

.tm-modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.tm-modal-header p {
    color: #999;
    margin-bottom: 30px;
    line-height: 1.5;
}

#tm-download-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

#tm-download-form input:focus {
    outline: none;
    border-color: #8B5CF6;
}

.tm-btn-submit-download {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s;
}

.tm-btn-submit-download:hover {
    transform: translateY(-2px);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}



/* =========================================
   NEW SINGLE PLAYER & LICENSE STYLES
   ========================================= */

/* Full Single Player */
.tm-single-player-full {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tm-single-player-full .tm-single-play-btn {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.tm-single-player-full .tm-single-play-btn:hover {
    transform: scale(1.05);
}

.tm-single-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tm-single-progress-bar {
    width: 100%;
    height: 8px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
}

.tm-single-progress-fill {
    height: 100%;
    width: 0%;
    background: #8B5CF6;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.tm-single-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    font-family: monospace;
}

/* License Area Overhaul */
.tm-license-area {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.tm-license-heading {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

/* Hide Default WooCommerce Labels */
.tm-license-area .variations label {
    display: none !important;
}

/* Style the Select Box */
.tm-license-area select {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'none\' stroke=\'white\' 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');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    transition: border-color 0.3s;
}

.tm-license-area select:hover,
.tm-license-area select:focus {
    border-color: #8B5CF6;
    outline: none;
}

/* Hide Quantity Input */
.tm-license-area .quantity {
    display: none !important;
}

/* Price Display */
.woocommerce-variation-price .price {
    font-size: 2.5rem;
    color: #8B5CF6;
    font-weight: 800;
    display: block;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Add to Cart Button */
.single_add_to_cart_button {
    width: 100%;
    background: linear-gradient(90deg, #8B5CF6, #6D28D9);
    border: none;
    color: #fff;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.single_add_to_cart_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

/* Exclusive Button */
.tm-exclusive-area {
    margin-top: 20px;
    text-align: center;
}

.tm-btn-exclusive {
    display: block;
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px dashed #444;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.tm-btn-exclusive:hover {
    border-color: #25D366;
    /* WhatsApp Green */
    color: #25D366;
    background: rgba(37, 211, 102, 0.05);
}

/* Reset button cleanup */
.reset_variations {
    display: none !important;
}



/* =========================================
   LICENSE CARDS & VOLUME STYLES
   ========================================= */

/* Hide Real Woo Form */
.tm-hidden-woo-form {
    height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* License Cards Grid */
.tm-license-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tm-license-card {
    background: #141414;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.tm-license-card:hover {
    transform: translateY(-5px);
    border-color: #8B5CF6;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.tm-license-card.popular {
    background: linear-gradient(145deg, #1a1a1a 0%, #141414 100%);
    border-color: #8B5CF6;
}

/* Badge 'Más Vendido' */
.tm-lic-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #8B5CF6;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Header Card */
.tm-lic-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.tm-lic-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 5px;
}

.tm-lic-price {
    font-size: 1.8rem;
    color: #8B5CF6;
    font-weight: 700;
    display: block;
}

/* Features List */
.tm-lic-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    font-size: 0.9rem;
    color: #aaa;
    flex: 1;
    /* Pushes button down */
    text-align: center;
}

.tm-lic-features li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #222;
}

.tm-lic-features li:last-child {
    border-bottom: none;
}

/* Select Button */
.tm-btn-select-license {
    width: 100%;
    background: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.tm-license-card:hover .tm-btn-select-license,
.tm-license-card.popular .tm-btn-select-license {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: #fff;
}

.tm-btn-select-license:hover {
    background: #7C3AED !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
}

/* Exclusive Card Customization */
.tm-license-exclusive {
    border-color: rgba(37, 211, 102, 0.3) !important;
}

.tm-license-exclusive:hover {
    border-color: #25D366 !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.15) !important;
}

.tm-license-exclusive .tm-lic-price {
    color: #25D366 !important;
}

.tm-btn-select-license.tm-whatsapp-btn {
    background: #25D366;
    border-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.tm-btn-select-license.tm-whatsapp-btn:hover {
    background: #1eb954 !important;
    border-color: #1eb954 !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4) !important;
}

/* Volume Control */
.tm-single-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.tm-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-vol-icon {
    font-size: 1.1rem;
    cursor: pointer;
}

.tm-vol-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
}

.tm-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

.tm-vol-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Simplify Free Download Link */
.tm-single-download-simple {
    text-align: center;
    margin-top: 25px;
}

.tm-text-link-download {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.tm-text-link-download:hover {
    color: #8B5CF6;
}

/* Responsive */
@media (max-width: 600px) {
    .tm-license-cards-container {
        grid-template-columns: 1fr;
    }
}



/* =========================================
   NEW LICENSE DETAILS & GRID VOLUME
   ========================================= */

/* Grid Volume Slider */
.tm-beat-player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-grid-volume {
    width: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.tm-grid-volume:hover {
    opacity: 1;
}

.tm-vol-slider.mini {
    height: 3px;
    width: 100%;
}

/* New License Summary & Toggle */
.tm-lic-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #ccc;
}

.tm-lic-expand-btn {
    background: none;
    border: none;
    color: #8B5CF6;
    font-size: 0.8rem;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 5px;
    transition: color 0.3s;
}

.tm-lic-expand-btn:hover {
    color: #fff;
    text-decoration: underline;
}

.tm-lic-features {
    text-align: left !important;
    font-size: 0.85rem !important;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px !important;
    border-radius: 8px;
    margin-bottom: 20px !important;
}

.tm-lic-features li {
    padding-left: 5px;
    margin-bottom: 6px;
    border: none !important;
}

.tm-cross {
    color: #ff4444;
    opacity: 0.7;
}



/* =========================================
   NEW GLOBAL PLAYER STYLES (COMPACT)
   ========================================= */

.tm-global-player {
    background: #000;
    border-top: 1px solid #333;
    padding: 10px 20px;
}

.tm-player-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 20px;
}

/* 1. Left: Info */
.tm-player-info {
    display: flex;
    align-items: center;
    width: 25%;
    min-width: 200px;
}

.tm-player-artwork {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 12px;
    object-fit: cover;
}

.tm-player-text {
    display: flex;
    flex-direction: column;
}

.tm-player-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-player-meta {
    color: #8B5CF6;
    font-size: 0.8rem;
}

/* 2. Center: Controls & Bar */
.tm-player-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.tm-player-controls-main button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.tm-player-controls-main button:hover {
    transform: scale(1.1);
}

.tm-player-progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.tm-time-current,
.tm-time-total {
    font-size: 0.8rem;
    color: #888;
    min-width: 35px;
}

.tm-player-progress {
    flex: 1;
    height: 5px;
    background: #333;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Fix for fill overflow */
}

/* 3. Right: Volume & Close */
.tm-player-right {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 25%;
    justify-content: flex-end;
}

.tm-player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-vol-slider.global {
    width: 80px;
    height: 4px;
}

.tm-player-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.tm-player-close:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .tm-player-container {
        flex-direction: column;
        gap: 10px;
    }

    .tm-player-info,
    .tm-player-right {
        width: 100%;
        justify-content: space-between;
    }

    .tm-player-center {
        width: 100%;
    }
}



/* =========================================
   RESTORED OVERLAY BUTTON & VOLUME FIX
   ========================================= */

/* Overlay Play Button (Centered on Image) */
.tm-beat-artwork .tm-beat-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.9);
    /* Purple */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.tm-beat-card:hover .tm-beat-artwork .tm-beat-play-btn,
.tm-beat-play-btn.playing {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tm-beat-play-btn:hover {
    background: #7C3AED;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Playing Animation Pulse */
.tm-beat-play-btn.playing {
    animation: tm-pulse 2s infinite;
}

@keyframes tm-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* New Grid Volume Alignment */
.tm-beat-player-controls {
    justify-content: flex-start;
    /* Left align since no button */
    padding-top: 5px;
    margin-bottom: 5px;
}

.tm-vol-icon-small {
    font-size: 0.85rem;
    margin-right: 5px;
    opacity: 0.7;
}

.tm-grid-volume {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100px;
}



/* =========================================
   CLEANUP & FINAL REFINEMENTS
   ========================================= */

/* Reset Play Button (Now using button tag) */
.tm-beat-artwork button.tm-beat-play-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    outline: none;
    background: rgba(139, 92, 246, 0.9);
}

.tm-beat-artwork button.tm-beat-play-btn svg {
    display: block;
    margin: 0 auto;
}

/* Ensure no overlap is blocking clicks */
.tm-beat-artwork {
    position: relative;
    overflow: hidden;
}

/* Remove Grid Volume related styles */
.tm-beat-player-controls,
.tm-grid-volume {
    display: none !important;
    /* Force hide since we moved to global player */
}

/* Global Player Volume Enhancement */
.tm-player-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
}

.tm-vol-slider.global {
    width: 100px;
    cursor: pointer;
    accent-color: #8B5CF6;
}

.tm-vol-icon {
    font-size: 1.1rem;
    cursor: pointer;
}

/* Mobile Fixes for Global Player */
@media (max-width: 768px) {
    .tm-player-right {
        display: none;
        /* Hide volume on mobile to save space */
    }

    .tm-player-container {
        padding: 5px 10px;
    }
}



/* =========================================
   LIKE BUTTON
   ========================================= */
.tm-btn-like {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 15;
}

.tm-btn-like:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tm-btn-like.liked {
    color: #e91e63;
}

.tm-btn-like.animate-like {
    animation: likeBounce 0.4s;
}

@keyframes likeBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}



/* =========================================
   GLASSMORPHISM LOGIN / REGISTER (v3.0)
   ========================================= */

.tm-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 60%);
}

.tm-glass-panel {
    width: 100%;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

/* Tabs */
.tm-login-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tm-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 20px;
    color: #888;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tm-tab-btn.active {
    color: #fff;
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 2px solid #8B5CF6;
}

/* Form Content */
.tm-form-content {
    padding: 40px;
}

.tm-form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tm-form-section.active {
    display: block;
}

.tm-form-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.tm-form-subtitle {
    color: #888;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Inputs */
.tm-input-group {
    margin-bottom: 20px;
}

.tm-input-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tm-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tm-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #8B5CF6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Actions */
.tm-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.tm-checkbox {
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-forgot-link {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 500;
}

.tm-btn-submit {
    width: 100%;
    padding: 14px;
    background: #8B5CF6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tm-btn-submit:hover {
    background: #7c4dff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.tm-btn-submit:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .tm-glass-panel {
        max-width: 100%;
    }

    .tm-form-content {
        padding: 25px;
    }
}



/* =========================================
   REVIEWS / COMMENTS SECTION
   ========================================= */

.tm-reviews-section {
    background: rgba(20, 20, 20, 0.6);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tm-reviews-section #reviews {
    color: #fff;
}

.tm-reviews-section #reviews h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #8B5CF6;
    padding-bottom: 15px;
}

.tm-reviews-section .commentlist {
    list-style: none;
    padding: 0;
}

.tm-reviews-section .comment {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #8B5CF6;
}

.tm-reviews-section .comment-text {
    color: #ccc;
}

.tm-reviews-section .comment-author {
    color: #fff;
    font-weight: 600;
}

.tm-reviews-section .comment-form input[type='text'],
.tm-reviews-section .comment-form input[type='email'],
.tm-reviews-section .comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.tm-reviews-section .comment-form input[type='text']:focus,
.tm-reviews-section .comment-form input[type='email']:focus,
.tm-reviews-section .comment-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #8B5CF6;
    outline: none;
}

.tm-reviews-section .comment-form label {
    color: #ccc;
    display: block;
    margin-bottom: 8px;
}

.tm-reviews-section .comment-form .submit {
    background: #8B5CF6;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tm-reviews-section .comment-form .submit:hover {
    background: #7C3AED !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
}

.tm-reviews-section .star-rating {
    color: #FFD700;
}

.tm-reviews-section .woocommerce-Reviews-title {
    color: #fff !important;
}



/* =========================================
   DASHBOARD / MY ACCOUNT LOGGED IN
   ========================================= */

/* Main Layout */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

/* Navigation Sidebar */
.woocommerce-MyAccount-navigation {
    flex: 0 0 250px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 12px 15px;
    color: #888;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 20px;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border-left: 3px solid #8B5CF6;
}

/* Content Area */
.woocommerce-MyAccount-content {
    flex: 1;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    color: #ccc;
}

.woocommerce-MyAccount-content p {
    font-size: 1rem;
    line-height: 1.6;
}

.woocommerce-MyAccount-content h3,
.woocommerce-MyAccount-content h2 {
    color: #fff;
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* Tables (Orders/Downloads) */
.woocommerce-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce-table th {
    text-align: left;
    padding: 15px;
    color: #fff;
    border-bottom: 2px solid #8B5CF6;
    font-weight: 600;
}

.woocommerce-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #aaa;
}

.woocommerce-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

/* Buttons inside Dashboard */
.woocommerce-MyAccount-content .button {
    background: #8B5CF6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-content .button:hover {
    background: #7c4dff;
    transform: translateY(-2px);
}

/* Address Box */
.woocommerce-Address {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.woocommerce-Address-title h3 {
    border: none;
    color: #8B5CF6;
    font-size: 1.2rem;
    padding: 0;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        flex: auto;
        width: 100%;
    }
}