/* Portal Anggota & Layanan - BukuKu CMS */
.portal-hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 3rem 0 2.25rem; margin-bottom: 1.5rem; }
.portal-hero h1 { font-weight: 700; font-size: 2rem; margin-bottom: .35rem; color: #fff; }
.portal-hero p { opacity: .92; }
.portal-body { padding-bottom: 3rem; min-height: 40vh; }

.portal-tabs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; background: #fff; border-radius: 14px; padding: .5rem; box-shadow: 0 4px 16px rgba(0,0,0,.06); margin: -2.6rem 0 1.5rem; position: relative; }
.portal-tabs a { padding: .5rem .85rem; border-radius: 10px; color: #4a5568; text-decoration: none; font-weight: 500; font-size: .95rem; }
.portal-tabs a.active, .portal-tabs a:hover { background: #eef0ff; color: #4c51bf; }

.p-card { background: #fff; border-radius: 16px; box-shadow: 0 6px 22px rgba(0,0,0,.06); padding: 1.4rem; margin-bottom: 1.25rem; }
.p-card h5 { font-weight: 700; margin-bottom: 1rem; }

.status-clear { background: #f0fff4; border: 2px solid #48bb78; color: #22543d; border-radius: 16px; padding: 1.25rem 1.4rem; }
.status-owe { background: #fffaf0; border: 2px solid #ed8936; color: #7b341e; border-radius: 16px; padding: 1.25rem 1.4rem; }
.status-late { background: #fff5f5; border: 2px solid #e53e3e; color: #742a2a; border-radius: 16px; padding: 1.25rem 1.4rem; }
.status-big { font-size: 1.35rem; font-weight: 700; }

.member-card-digital { background: linear-gradient(135deg, #2c3e50, #4c51bf); color: #fff; border-radius: 16px; padding: 1.1rem 1.25rem; }
.member-card-digital .bc { background: #fff; border-radius: 10px; padding: .4rem; text-align: center; margin-top: .75rem; }
.member-card-digital .bc svg { max-width: 100%; height: 56px; }

.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.pb-card { background: #fff; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.06); padding: 1rem 1.1rem; display: flex; gap: .85rem; align-items: flex-start; height: 100%; }
.pb-rank { min-width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #667eea; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pb-title { font-weight: 700; color: #2d3748; line-height: 1.3; }
.pb-meta { color: #718096; font-size: .88rem; margin: .2rem 0 .5rem; }
.pb-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.eb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.1rem; }
.eb-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.07); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s; }
.eb-card:hover { transform: translateY(-3px); color: inherit; }
.eb-cover { aspect-ratio: 3/4; background: linear-gradient(135deg, #a3bffa, #667eea); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; text-align: center; padding: .75rem; overflow: hidden; }
.eb-cover img { width: 100%; height: 100%; object-fit: cover; }
.eb-info { padding: .7rem .8rem; }
.eb-info .t { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.eb-info .a { color: #718096; font-size: .8rem; }

.pg-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.07); height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pg-card:hover { color: inherit; }
.pg-cover { aspect-ratio: 16/9; background: #e2e8f0 center/cover no-repeat; }
.pg-body { padding: 1rem 1.1rem; }
.pg-date { color: #667eea; font-weight: 600; font-size: .85rem; }

.wk-card { background: #fff; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.06); padding: 1.1rem; height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.wk-card:hover { color: inherit; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.wk-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: #667eea; font-weight: 700; }
.wk-content { white-space: pre-wrap; line-height: 1.8; font-size: 1.05rem; }

.reader-frame { width: 100%; height: 80vh; border: 0; border-radius: 12px; background: #525659; }

.sv-q { padding: 1rem 0; border-bottom: 1px solid #edf2f7; }
.sv-q:last-child { border-bottom: 0; }
.sv-scale { display: flex; gap: .4rem; flex-wrap: wrap; }
.sv-scale input { display: none; }
.sv-scale label { width: 3rem; height: 3rem; border-radius: 12px; border: 2px solid #cbd5e0; display: flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; }
.sv-scale input:checked + label { background: #667eea; border-color: #667eea; color: #fff; }
.sv-scale-legend { display: flex; justify-content: space-between; max-width: 17rem; font-size: .78rem; color: #718096; }

@media (max-width: 576px) {
    .portal-hero h1 { font-size: 1.5rem; }
    .eb-grid { grid-template-columns: repeat(2, 1fr); }
}
