/* ── Premium Content Plugin Styles ─────────────────────────────── */

/* ── Lock Wall ── */
.pc-premium-wrapper {
    position: relative;
}

.pc-premium-content {
    position: relative;
}

/* Blur konten premium untuk non-member */
.pc-premium-wrapper[data-access="0"] .pc-premium-content {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    max-height: 180px;
    overflow: hidden;
}

/* Overlay */
.pc-lock-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.97) 30%);
    z-index: 10;
}

.pc-lock-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin: 20px 0 40px;
}

.pc-lock-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.pc-lock-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.pc-lock-desc {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ── Pilihan Harga ── */
.pc-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.pc-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 16px;
    width: 200px;
    position: relative;
    text-align: center;
    transition: border-color 0.2s;
}

.pc-option:hover {
    border-color: #6366f1;
}

.pc-option-featured {
    border-color: #6366f1;
    background: #fafaff;
}

.pc-option-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

.pc-option-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #374151;
}

.pc-option-price {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 8px 0;
}

.pc-option-price span {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
}

.pc-option-note {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* ── Buttons ── */
.pc-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.15s;
    width: 100%;
    margin-top: 4px;
}

.pc-btn:hover { opacity: 0.85; }

.pc-btn-article {
    background: #f3f4f6;
    color: #374151;
}

.pc-btn-membership {
    background: #6366f1;
    color: #fff;
}

.pc-btn-pay {
    background: #10b981;
    color: #fff;
}

.pc-btn-cancel-pay {
    background: #f3f4f6;
    color: #374151;
    margin-top: 8px;
}

/* ── Payment Form ── */
.pc-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.pc-payment-form {
    margin-top: 16px;
    text-align: left;
}

.pc-msg {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.pc-msg.error { color: #ef4444; }

/* ── Login hint ── */
.pc-login-hint {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.pc-login-hint a { color: #6366f1; }

/* ── Account Page ── */
.pc-account {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 0;
}

.pc-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.pc-notice-success { background: #d1fae5; color: #065f46; }
.pc-notice-error   { background: #fee2e2; color: #991b1b; }

.pc-account-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pc-tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.pc-tab-btn.active,
.pc-tab-btn:hover {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.pc-tab-content {
    display: none;
}

.pc-tab-content.active {
    display: block;
}

.pc-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.pc-badge-active  { background: #d1fae5; color: #065f46; }
.pc-badge-expired { background: #fee2e2; color: #991b1b; }

.pc-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pc-article-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pc-article-list a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.pc-account label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #374151;
}

.pc-account .pc-input {
    margin-bottom: 12px;
}

.pc-renew-area {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    max-width: 320px;
}

.pc-logout {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.pc-logout a {
    color: #ef4444;
    font-size: 13px;
}

@media (max-width: 480px) {
    .pc-options { flex-direction: column; align-items: center; }
    .pc-option  { width: 100%; max-width: 280px; }
    .pc-lock-box { padding: 20px; }
}
