/* Pulihku Audio Membership Styles */

.pulihku-form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pulihku-form-container p {
    margin-bottom: 15px;
}

.pulihku-form-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.pulihku-form-container input[type="text"],
.pulihku-form-container input[type="email"],
.pulihku-form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.pulihku-btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.pulihku-btn:hover {
    background: #0056b3;
    color: #fff;
}

.pulihku-error {
    color: #d9534f;
    background: #fdf7f7;
    padding: 10px;
    border: 1px solid #d9534f;
    border-radius: 4px;
    margin-bottom: 15px;
}

.pulihku-dashboard {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pulihku-order-list {
    list-style: none;
    padding: 0;
}

.pulihku-order-list li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pulihku-order-list li:last-child {
    border-bottom: none;
}

.pulihku-btn-small {
    background: #28a745;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.pulihku-btn-small:hover {
    background: #218838;
}

.pulihku-audio-container {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pulihku-audio-container audio {
    width: 100%;
    margin-top: 10px;
}

.pulihku-buy-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.pulihku-btn-buy {
    background: #ffc107;
    color: #212529;
    font-weight: bold;
    width: 100%;
    text-align: center;
}

.pulihku-btn-buy:hover {
    background: #e0a800;
}

/* --- NEW AUTH SPLIT SCREEN STYLES --- */

.pulihku-split-layout {
    display: flex;
    flex-wrap: wrap;
    font-family: 'Inter', 'Roboto', sans-serif;
    background: #f4f6f8;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    z-index: 99999;
}

/* Kiri: Form Area */
.pulihku-split-left {
    flex: 1;
    min-width: 320px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.pulihku-split-content {
    width: 100%;
    max-width: 400px;
}

.pulihku-split-logo {
    max-height: 35px;
    width: auto;
    max-width: 100%;
    margin-bottom: 50px;
    display: block;
}

.pulihku-split-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* Modern Audio Player with WaveSurfer */
.pulihku-modern-player-wrapper * {
    box-sizing: border-box;
}

.pulihku-modern-player-wrapper {
    display: flex;
    background: linear-gradient(135deg, #1a73e8 0%, #00d2ff 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 150, 255, 0.2);
    margin-bottom: 25px;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    align-items: stretch;
    min-height: 120px;
    width: 100%;
}

.pulihku-modern-cover {
    width: 140px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: #0b4baf;
    position: relative;
}

.pulihku-modern-cover::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(26, 115, 232, 0.6) 100%);
}

.pulihku-modern-controls {
    flex-grow: 1;
    min-width: 0;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pulihku-modern-timing {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.pulihku-waveform-container {
    width: 100%;
    height: 40px;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
}

.pulihku-modern-footer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pulihku-play-btn {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.pulihku-play-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: scale(1.05);
}

.pulihku-play-btn svg {
    margin: 0;
    padding: 0;
    width: 14px;
    height: 14px;
}

.pulihku-modern-title {
    flex-grow: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.pulihku-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulihku-volume-control span {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pulihku-vol-slider {
    width: 60px;
    cursor: pointer;
    accent-color: #fff;
}

@media (max-width: 600px) {
    .pulihku-modern-player-wrapper {
        flex-direction: column;
        border-radius: 12px;
    }

    .pulihku-modern-cover {
        width: 100%;
        height: 120px;
    }

    .pulihku-modern-cover::after {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(26, 115, 232, 0.6) 100%);
    }
}

.pulihku-split-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
}

.pulihku-split-error {
    background: #ffeeee;
    color: #d8000c;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid #d8000c;
}

/* Form Styles */
.pulihku-split-form .form-group {
    margin-bottom: 20px;
}

.pulihku-split-form input[type="text"],
.pulihku-split-form input[type="email"],
.pulihku-split-form input[type="tel"],
.pulihku-split-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.pulihku-split-form input[type="text"]:focus,
.pulihku-split-form input[type="email"]:focus,
.pulihku-split-form input[type="tel"]:focus,
.pulihku-split-form input[type="password"]:focus {
    border-color: #2879E3 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 121, 227, 0.2) !important;
}

.pulihku-split-form .form-row-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 30px;
}

.pulihku-split-form .forgot-link {
    color: #888;
    text-decoration: none;
}

button.pulihku-btn-primary {
    display: block !important;
    box-sizing: border-box !important;
    text-align: center !important;
    background: #2979E3 !important;
    /* Warna biru sesuai logo pulihku */
    color: #fff !important;
    border: none !important;
    padding: 15px !important;
    width: 100% !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.3s, transform 0.1s;
}

button.pulihku-btn-primary:hover {
    background: #1a64c4 !important;
}

button.pulihku-btn-primary:active {
    transform: scale(0.98);
}

.pulihku-split-bottom-link {
    margin-top: 40px;
    font-size: 14px;
    color: #888;
}

.pulihku-split-bottom-link a {
    color: #2879E3 !important;
    font-weight: bold;
    text-decoration: none;
}

/* Kanan: Illustration Area */
.pulihku-split-right {
    flex: 1;
    min-width: 320px;
    background: #07122a;
    /* diubah dari #ffffff agar nge-blend jika belum termuat */
    padding: 0;
    display: flex;
    flex-direction: column;
}

.pulihku-split-bg {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #060D20;
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .pulihku-split-right {
        display: none;
        /* Sembunyikan gambar besar di mobile agar lebih fokus login */
    }

    .pulihku-split-left {
        padding: 20px;
    }
}

/* --- NEW DASHBOARD & PROFILE STYLES --- */

.pulihku-dash-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #333;
}

.pulihku-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.pulihku-dash-greeting {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pulihku-dash-avatar-mini {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pulihku-dash-greeting h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.pulihku-dash-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.pulihku-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.pulihku-tab-btn:hover {
    background: #2979E3;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.pulihku-tab-btn.active {
    background: #2979E3;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.pulihku-tab-content {
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulihku-section {
    margin-bottom: 50px;
}

.pulihku-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Grid & Cards */
.pulihku-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.pulihku-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.pulihku-slider::-webkit-scrollbar {
    height: 8px;
}

.pulihku-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pulihku-slider::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.pulihku-slider-card {
    min-width: 250px;
    scroll-snap-align: start;
}

.pulihku-card,
.pulihku-slider-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.pulihku-card:hover,
.pulihku-slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pulihku-card-img {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pulihku-card-play,
.pulihku-card-lock {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #2979E3;
}

.pulihku-card-body {
    padding: 15px;
}

.pulihku-card-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    font-weight: 600;
}

.pulihku-card-title {
    margin: 5px 0 0 0;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
}

.pulihku-empty-state {
    padding: 40px;
    text-align: center;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
    color: #6b7280;
}

.pulihku-empty-state .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    color: #9ca3af;
}

/* Profile Panel */
.pulihku-profile-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pulihku-profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
}

.pulihku-profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff;
}

.pulihku-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: background 0.3s;
}

.pulihku-file-label:hover {
    background: #e5e7eb;
}

.pulihku-profile-right {
    flex: 1;
    min-width: 300px;
}

.pulihku-info-group {
    margin-bottom: 20px;
}

.pulihku-info-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 5px;
}

.pulihku-info-group div {
    font-size: 16px;
    color: #111827;
    font-weight: 500;
    background: #f9fafb;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.pulihku-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    background: #fef2f2;
    transition: background 0.3s;
}

.pulihku-btn-logout:hover {
    background: #fee2e2;
}

/* --- FORM PROFILE STYLES --- */
.pulihku-input-form {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    color: #111827;
    background: #fff;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.pulihku-input-form:focus {
    border-color: #2979E3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 121, 227, 0.1);
}

.pulihku-input-form.disable-field {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    border: 1px solid #e5e7eb;
}

/* --- MOBILE RESPONSIVE DASHBOARD --- */
@media (max-width: 768px) {
    .pulihku-profile-wrapper {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .pulihku-profile-left {
        width: 100%;
        margin-bottom: 20px;
    }

    .pulihku-profile-right {
        min-width: 100%;
    }

    .pulihku-dash-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pulihku-tab-btn {
        padding: 10px;
        font-size: 14px;
        flex: 1 1 30%;
        text-align: center;
        border-bottom-width: 2px;
    }

    .pulihku-tab-btn.active::after {
        height: 2px;
        bottom: -2px;
    }

    .pulihku-dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .pulihku-btn-logout {
        flex: 1 1 100%;
        justify-content: center;
    }
}