/* Padhai Room — student/teacher web app. "Aurora" theme: dark glass rail + light aurora canvas. */

:root {
    --pr-primary: #4338CA;
    --pr-primary-dark: #312E81;
    --pr-primary-soft: #EEF0FF;
    --pr-violet: #7C3AED;
    --pr-cyan: #06B6D4;
    --pr-accent: #F59E0B;
    --pr-accent-dark: #D97706;
    --pr-danger: #EF4444;
    --pr-success: #10B981;
    --pr-ink: #0B1020;
    --pr-ink-soft: #334155;
    --pr-muted: #6B7897;
    --pr-line: #E4E8F4;
    --pr-bg: #F6F7FC;
    --pr-card: #FFFFFF;

    --pr-grad: linear-gradient(135deg, #4338CA 0%, #6D28D9 52%, #0EA5E9 100%);
    --pr-grad-warm: linear-gradient(135deg, #FBBF24 0%, #F59E0B 55%, #EA580C 100%);
    --pr-grad-rail: linear-gradient(185deg, #0B1020 0%, #141B3C 55%, #1B1350 100%);

    --pr-radius: 20px;
    --pr-radius-sm: 10px;
    --pr-shadow: 0 1px 2px rgba(11, 16, 32, .04), 0 8px 24px -12px rgba(11, 16, 32, .14);
    --pr-shadow-lg: 0 24px 60px -20px rgba(11, 16, 32, .34);
    --pr-shadow-brand: 0 12px 28px -10px rgba(67, 56, 202, .55);
    --pr-ring: 0 0 0 4px rgba(67, 56, 202, .14);

    --pr-nav-h: 72px;
    --pr-sidebar-w: 254px;
    --pr-ease: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--pr-bg);
    color: var(--pr-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: rgba(67, 56, 202, .16); }

/* ---------- Motion ---------- */

@keyframes pr-fade-up { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes pr-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pr-pop { 0% { transform: scale(.92); opacity: 0; } 60% { transform: scale(1.02); } 100% { transform: scale(1); opacity: 1; } }
@keyframes pr-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes pr-spin { to { transform: rotate(360deg); } }
@keyframes pr-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
@keyframes pr-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pr-sheet-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes pr-sheet-center {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes pr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pr-aurora {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(2%, -2%, 0) scale(1.06); }
}

/* ---------- App frame ---------- */

.pr-app-body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.pr-app-body::before,
.pr-app-body::after {
    content: '';
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
}

.pr-app-body::before {
    width: 46vw; height: 46vw;
    top: -16vw; right: -10vw;
    background: radial-gradient(circle at 50% 50%, rgba(109, 40, 217, .38), transparent 68%);
    animation: pr-aurora 18s var(--pr-ease) infinite;
}

.pr-app-body::after {
    width: 40vw; height: 40vw;
    bottom: -14vw; left: 6vw;
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, .3), transparent 68%);
    animation: pr-aurora 24s var(--pr-ease) infinite reverse;
}

.pr-app {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
}

.pr-sidebar { display: none; }

/* ---------- Shell ---------- */

.pr-shell {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(var(--pr-nav-h) + env(safe-area-inset-bottom, 0px) + 14px);
}

.pr-shell--flush { padding-bottom: 0; }

.pr-main {
    padding: 0 16px 18px;
    animation: pr-fade-up .42s var(--pr-ease) both;
}

.pr-main > * { animation: pr-fade-up .5s var(--pr-ease) both; }
.pr-main > *:nth-child(1) { animation-delay: .02s; }
.pr-main > *:nth-child(2) { animation-delay: .06s; }
.pr-main > *:nth-child(3) { animation-delay: .1s; }
.pr-main > *:nth-child(4) { animation-delay: .14s; }
.pr-main > *:nth-child(5) { animation-delay: .18s; }
.pr-main > *:nth-child(n+6) { animation-delay: .22s; }

/* ---------- Top bar ---------- */

.pr-topbar {
    position: relative;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(246, 247, 252, .82);
    backdrop-filter: blur(14px) saturate(180%);
}

.pr-topbar--solid {
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--pr-line);
    backdrop-filter: blur(14px) saturate(180%);
}

.pr-topbar-profile { display: grid; }

.pr-greet { flex: 1; min-width: 0; }
.pr-greet small { display: block; font-size: .76rem; color: var(--pr-muted); font-weight: 500; }
.pr-greet strong { display: block; font-size: 1.1rem; font-weight: 700; letter-spacing: -.025em; }

.pr-page-title { flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.pr-page-title small { display: block; font-size: .74rem; font-weight: 600; color: var(--pr-success); }

.pr-avatar {
    width: 44px; height: 44px; border-radius: 16px;
    object-fit: cover; background: var(--pr-primary-soft);
    display: grid; place-items: center;
    font-weight: 800; color: var(--pr-primary); font-size: .95rem;
    flex: 0 0 auto; overflow: hidden;
    transition: transform .3s var(--pr-ease), box-shadow .3s var(--pr-ease);
}
a:hover > .pr-avatar { transform: translateY(-2px); box-shadow: var(--pr-shadow-brand); }
.pr-avatar--sm { width: 36px; height: 36px; font-size: .78rem; border-radius: 12px; }
.pr-avatar--lg { width: 82px; height: 82px; font-size: 1.6rem; border-radius: 26px; }

.pr-icon-btn {
    width: 44px; height: 44px; flex: 0 0 auto;
    border-radius: 15px; border: 1px solid var(--pr-line);
    background: rgba(255, 255, 255, .9); display: grid; place-items: center;
    cursor: pointer; position: relative; color: var(--pr-ink);
    transition: transform .25s var(--pr-ease), box-shadow .25s var(--pr-ease), border-color .25s var(--pr-ease);
}
.pr-icon-btn:hover { transform: translateY(-2px); box-shadow: var(--pr-shadow); border-color: rgba(67, 56, 202, .4); }
.pr-icon-btn svg { width: 20px; height: 20px; }
.pr-icon-btn--plain { border: 0; background: transparent; width: 38px; height: 38px; }
.pr-icon-btn .pr-dot {
    position: absolute; top: 9px; right: 10px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--pr-danger); border: 2px solid #fff;
    animation: pr-pulse 2.2s infinite;
}

/* ---------- Search ---------- */

.pr-search {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--pr-line);
    border-radius: 999px; padding: 13px 18px; margin-bottom: 16px;
    box-shadow: var(--pr-shadow);
    transition: box-shadow .25s var(--pr-ease), border-color .25s var(--pr-ease);
}
.pr-search:focus-within { border-color: var(--pr-primary); box-shadow: var(--pr-ring); }
.pr-search svg { width: 18px; height: 18px; color: var(--pr-muted); flex: 0 0 auto; }
.pr-search input { flex: 1; border: 0; outline: 0; font-size: .94rem; background: transparent; color: var(--pr-ink); }

/* ---------- Cards ---------- */

.pr-card {
    background: var(--pr-card);
    border: 1px solid rgba(228, 232, 244, .9);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 18px;
    margin-bottom: 14px;
    transition: transform .3s var(--pr-ease), box-shadow .3s var(--pr-ease);
}
.pr-card--flat { box-shadow: none; }
.pr-card--pad0 { padding: 0; overflow: hidden; }

.pr-section-title {
    font-size: 1.05rem; font-weight: 800; margin: 22px 0 12px;
    letter-spacing: -.02em; display: flex; align-items: center; gap: 9px;
}
.pr-label {
    font-size: .7rem; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--pr-muted); margin: 24px 0 10px;
}

/* ---------- Group card ---------- */

.pr-dash-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 14px; padding: 16px 18px;
    border-radius: var(--pr-radius);
    background: var(--pr-grad); color: #fff;
    box-shadow: var(--pr-shadow-brand);
}
.pr-dash-hero small { display: block; font-size: .74rem; opacity: .82; font-weight: 600; }
.pr-dash-hero strong { display: block; margin-top: 3px; font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; }
.pr-dash-hero .pr-btn { background: #fff; color: var(--pr-primary); box-shadow: none; flex: 0 0 auto; }

.pr-group-card {
    display: block; background: #fff; border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow); overflow: hidden; margin-bottom: 14px;
    border: 1px solid rgba(228, 232, 244, .9);
    transition: transform .3s var(--pr-ease), box-shadow .3s var(--pr-ease);
}
.pr-group-card:hover { transform: translateY(-3px); box-shadow: var(--pr-shadow-lg); }
.pr-group-banner {
    min-height: 92px; padding: 16px 18px 18px;
    background: var(--pr-grad); color: #fff;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.pr-group-banner::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 18% 130%, rgba(56, 189, 248, .5), transparent 62%),
        radial-gradient(80% 80% at 90% -20%, rgba(255, 255, 255, .3), transparent 60%);
}
.pr-group-tag, .pr-group-banner h4 { position: relative; z-index: 1; }
.pr-group-tag {
    display: inline-block; width: fit-content;
    padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
    background: rgba(255,255,255,.2); font-size: .64rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
}
.pr-group-banner h4 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.pr-group-body { display: flex; align-items: center; gap: 12px; padding: 13px 15px; }
.pr-group-meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--pr-muted); flex-wrap: wrap; flex: 1; min-width: 0; }
.pr-online {
    display: inline-flex; align-items: center; gap: 6px;
    color: #15803D; font-weight: 800;
}
.pr-online i {
    width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); animation: pr-pulse 2s infinite;
}

.pr-qactions {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px; margin-bottom: 14px;
}
.pr-qaction {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 7px; min-height: 86px; padding: 12px 8px;
    background: #fff; border: 1px solid rgba(228, 232, 244, .9);
    border-radius: var(--pr-radius-sm); box-shadow: var(--pr-shadow);
    text-align: center; font-size: .72rem; font-weight: 700; color: var(--pr-ink-soft);
}
.pr-qaction b { font-size: 1.15rem; line-height: 1; }
.pr-qaction .is-live {
    width: 10px; height: 10px; border-radius: 50%; background: #EF4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); animation: pr-pulse 2s infinite;
}
.pr-qaction:hover { transform: translateY(-2px); box-shadow: var(--pr-shadow-lg); }
.pr-card--cta strong { display: block; font-size: .95rem; margin-bottom: 6px; }
.pr-card--cta p { margin: 0 0 12px; font-size: .82rem; line-height: 1.45; }

.pr-stack { display: flex; align-items: center; }
.pr-stack .pr-avatar { width: 28px; height: 28px; font-size: .6rem; border: 2px solid #fff; margin-right: -10px; border-radius: 50%; }
.pr-stack .pr-avatar:hover { transform: translateY(-3px) scale(1.08); z-index: 2; }
.pr-stack .pr-stack-more { font-size: .72rem; font-weight: 800; color: var(--pr-muted); margin-left: 16px; }

.pr-go {
    width: 46px; height: 46px; flex: 0 0 auto; border: 0;
    border-radius: 16px; background: var(--pr-grad); color: #fff;
    display: grid; place-items: center; cursor: pointer;
    box-shadow: var(--pr-shadow-brand);
    transition: transform .28s var(--pr-ease), box-shadow .28s var(--pr-ease);
}
.pr-go:hover { transform: translateY(-2px) scale(1.05); }
.pr-go:active { transform: scale(.96); }
.pr-go svg { width: 20px; height: 20px; }

/* ---------- Premium banner ---------- */

.pr-promo {
    position: relative; overflow: hidden;
    border-radius: var(--pr-radius);
    background: var(--pr-grad-warm);
    color: #fff; padding: 18px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    box-shadow: 0 16px 34px -16px rgba(217, 119, 6, .7);
}
.pr-promo[hidden] { display: none !important; }
.pr-promo::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(80% 120% at 110% -20%, rgba(255, 255, 255, .35), transparent 60%);
    pointer-events: none;
}
.pr-promo-body { flex: 1; min-width: 0; position: relative; }
.pr-promo-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .24); border-radius: 999px;
    padding: 4px 11px; font-size: .64rem; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px;
}
.pr-promo h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.pr-promo p { margin: 0; font-size: .8rem; opacity: .96; line-height: 1.45; }
.pr-promo .pr-btn { background: #fff; color: #B45309; flex: 0 0 auto; box-shadow: none; position: relative; }

/* ---------- Plan card ---------- */

.pr-plan {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid rgba(228, 232, 244, .9);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow); padding: 18px; margin-bottom: 16px;
}
.pr-plan::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--pr-grad);
}
.pr-plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pr-chip {
    display: inline-block; background: var(--pr-primary-soft); color: var(--pr-primary);
    border-radius: 999px; padding: 5px 12px; font-size: .68rem; font-weight: 800;
    letter-spacing: .02em;
}
.pr-plan h3 { margin: 9px 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.pr-plan-days { text-align: right; }
.pr-plan-days strong {
    display: block; font-size: 1.7rem; font-weight: 800; line-height: 1;
    background: var(--pr-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pr-plan-days span { font-size: .72rem; color: var(--pr-muted); font-weight: 600; }
.pr-progress { height: 9px; border-radius: 999px; background: #EDF0F9; margin: 15px 0 8px; overflow: hidden; }
.pr-progress i { display: block; height: 100%; border-radius: 999px; background: var(--pr-grad); transition: width .6s var(--pr-ease); }
.pr-plan-dates { display: flex; justify-content: space-between; font-size: .73rem; color: var(--pr-muted); }

/* ---------- List rows ---------- */

.pr-list {
    background: #fff; border: 1px solid rgba(228, 232, 244, .9);
    border-radius: var(--pr-radius); box-shadow: var(--pr-shadow); overflow: hidden;
}
.pr-list--plain { background: transparent; box-shadow: none; border: 0; }

.pr-row {
    display: flex; align-items: center; gap: 14px;
    padding: 15px 17px; border-bottom: 1px solid var(--pr-line);
    cursor: pointer; background: transparent; border-left: 0; border-right: 0; border-top: 0;
    width: 100%; text-align: left; font-size: .93rem; color: var(--pr-ink);
    transition: background .22s var(--pr-ease), padding-left .22s var(--pr-ease);
}
.pr-row:hover { background: #F8F9FE; padding-left: 21px; }
.pr-row:last-child { border-bottom: 0; }
.pr-row svg.pr-row-ico { width: 21px; height: 21px; flex: 0 0 auto; color: var(--pr-primary); }
.pr-row-text { flex: 1; min-width: 0; }
.pr-row-text strong { display: block; font-weight: 700; font-size: .94rem; }
.pr-row-text small { display: block; color: var(--pr-muted); font-size: .78rem; margin-top: 2px; }
.pr-row .pr-chev { width: 18px; height: 18px; color: #A3AEC9; flex: 0 0 auto; transition: transform .25s var(--pr-ease); }
.pr-row:hover .pr-chev { transform: translateX(3px); color: var(--pr-primary); }
.pr-row--danger, .pr-row--danger svg.pr-row-ico { color: var(--pr-danger); font-weight: 700; }

/* ---------- Buttons ---------- */

.pr-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: var(--pr-radius-sm); padding: 10px 22px;
    font-size: .92rem; font-weight: 700; cursor: pointer;
    background: var(--pr-grad); color: #fff;
    box-shadow: var(--pr-shadow-brand);
    transition: transform .24s var(--pr-ease), box-shadow .24s var(--pr-ease), opacity .2s linear;
}
.pr-btn::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-18deg); opacity: 0;
}
.pr-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(67, 56, 202, .62); }
.pr-btn:hover::after { opacity: 1; transition: left .6s var(--pr-ease); left: 120%; }
.pr-btn:active { transform: scale(.98); }
.pr-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.pr-btn[disabled]:hover { transform: none; }
.pr-btn[hidden] { display: none !important; }
.pr-btn--block { width: 100%; }
.pr-btn--ghost { background: #fff; color: var(--pr-primary); border: 1px solid var(--pr-line); box-shadow: none; }
.pr-btn--ghost:hover { border-color: var(--pr-primary); box-shadow: var(--pr-shadow); }
.pr-btn--soft { background: var(--pr-primary-soft); color: var(--pr-primary); box-shadow: none; }
.pr-btn--soft:hover { box-shadow: var(--pr-shadow); }
.pr-btn--danger { background: linear-gradient(135deg, #F87171, #DC2626); box-shadow: 0 12px 26px -12px rgba(220, 38, 38, .6); }
.pr-btn--danger:hover { box-shadow: 0 16px 32px -12px rgba(220, 38, 38, .7); }
.pr-btn--accent { background: var(--pr-grad-warm); box-shadow: 0 12px 26px -12px rgba(217, 119, 6, .6); }
.pr-btn--sm { padding: 9px 15px; font-size: .82rem; border-radius: 11px; }

.pr-btn-row { display: flex; gap: 10px; }
.pr-btn-row .pr-btn { flex: 1; }
.pr-card-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}

.pr-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {
    .pr-card-list {
        grid-template-columns: 1fr !important;
    }
}
/* ---------- Forms ---------- */

.pr-field { margin-bottom: 10px; }
.pr-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--pr-ink-soft); margin-bottom: 5px; }
.pr-field label .req { color: var(--pr-danger); }
.pr-field input, .pr-field select, .pr-field textarea {
    width: 100%; border: 1px solid var(--pr-line); border-radius: var(--pr-radius-sm);
    padding: 10px 15px; font-size: .76rem; background: #fff; color: var(--pr-ink);
    outline: 0; font-family: inherit;
    transition: border-color .2s var(--pr-ease), box-shadow .2s var(--pr-ease);
}
.pr-field input:focus, .pr-field select:focus, .pr-field textarea:focus {
    border-color: var(--pr-primary); box-shadow: var(--pr-ring);
}
.pr-field textarea { min-height: 96px; resize: vertical; }
.pr-field-error { display: block; color: var(--pr-danger); font-size: .77rem; margin-top: 5px; line-height: 1.35; }
.pr-field-error[hidden] { display: none !important; }
.pr-field.is-error > label { color: var(--pr-danger); }
.pr-field.is-error input,
.pr-field.is-error select,
.pr-field.is-error textarea,
.pr-field.is-error .pr-input-ico {
    border-color: var(--pr-danger) !important;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}
.pr-field.is-error .pr-input-ico input,
.pr-field.is-error .pr-input-ico select {
    border-color: transparent !important;
    box-shadow: none !important;
}
.pr-auth-agree.is-error { color: var(--pr-danger); }
.pr-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Alerts ---------- */

.pr-alert {
    border-radius: var(--pr-radius-sm); padding: 13px 15px; font-size: .85rem;
    margin-bottom: 14px; line-height: 1.5; border: 1px solid transparent;
    animation: pr-fade-in .3s var(--pr-ease) both;
}
.pr-alert--error { background: #FEF2F2; color: #B42318; border-color: #FECDCA; }
.pr-alert--success { background: #ECFDF5; color: #027A48; border-color: #A6F4C5; }
.pr-alert--info { background: var(--pr-primary-soft); color: var(--pr-primary-dark); border-color: #D3D6FF; }
.pr-alert--warn { background: #FFFAEB; color: #B54708; border-color: #FEDF89; }

/* ---------- Badges & stats ---------- */

.pr-badge {
    display: inline-block; border-radius: 999px; padding: 4px 11px;
    font-size: .69rem; font-weight: 800; background: #EEF1F8; color: #475569;
}
.pr-badge--green { background: #DCFCE7; color: #15803D; }
.pr-badge--amber { background: #FEF3C7; color: #B45309; }
.pr-badge--red { background: #FEE2E2; color: #B91C1C; }
.pr-badge--blue { background: var(--pr-primary-soft); color: var(--pr-primary); }

.pr-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.pr-stats--3 { grid-template-columns: repeat(3, 1fr); }
.pr-stat {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid rgba(228, 232, 244, .9);
    border-radius: var(--pr-radius-sm); padding: 15px;
    box-shadow: var(--pr-shadow); text-align: center;
    transition: transform .28s var(--pr-ease), box-shadow .28s var(--pr-ease), border-color .28s var(--pr-ease);
}
a.pr-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--pr-shadow-lg);
    border-color: rgba(67, 56, 202, .35);
}
.pr-stat strong {
    display: block; font-size: 1rem; font-weight: 700; letter-spacing: -.03em;
    transition: transform .28s var(--pr-ease);
}
a.pr-stat:hover strong { transform: scale(1.12); }
.pr-stat span { display: block; font-size: .73rem; color: var(--pr-muted); margin-top: 4px; font-weight: 600; }

/* ---------- People / tiles grid ---------- */

.pr-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pr-person {
    position: relative; border-radius: var(--pr-radius); overflow: hidden;
    background: #0B1020; aspect-ratio: 3 / 3;
    box-shadow: var(--pr-shadow);
    transition: transform .3s var(--pr-ease), box-shadow .3s var(--pr-ease);
    animation: pr-pop .4s var(--pr-ease) both;
}
.pr-person:hover { transform: translateY(-4px); box-shadow: var(--pr-shadow-lg); }
.pr-person img { width: 100%; height: 100%; object-fit: cover; }
.pr-person-fallback {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: var(--pr-grad-rail); color: #fff;
    font-size: 1.85rem; font-weight: 800;
}
.pr-person-info {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 11px 12px;
    background: linear-gradient(transparent, rgba(5, 8, 20, .92));
    color: #fff; display: flex; align-items: flex-end; gap: 8px;
}
.pr-person-info div { flex: 1; min-width: 0; }
.pr-person-info strong { display: block; font-size: .85rem; font-weight: 700; }
.pr-person-info small { display: block; font-size: .68rem; opacity: .85; }
.pr-person-act {
    width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer;
    transition: background .2s var(--pr-ease), transform .2s var(--pr-ease);
}
.pr-person-act:hover { background: #fff; color: var(--pr-primary); transform: scale(1.1); }
.pr-person-act svg { width: 13px; height: 13px; }
.pr-person-live {
    position: absolute; top: 10px; left: 10px; z-index: 4;
    background: linear-gradient(135deg, #F87171, #DC2626); color: #fff; border-radius: 999px;
    padding: 3px 9px; font-size: .6rem; font-weight: 800; letter-spacing: .08em;
    animation: pr-pulse 2.4s infinite;
}

/* ---------- Chat ---------- */

.pr-chat-shell {
    display: flex; flex-direction: column;
    width: 100%; max-width: none;
    height: 100dvh; height: 100vh;
    margin: 0; background: #EEF1F8; position: relative; z-index: 1;
}
.pr-chat-body { flex: 1; overflow-y: auto; padding: 14px max(16px, 4vw) 12px; }
.pr-msg { display: flex; margin-bottom: 8px; }
.pr-msg-in { justify-content: flex-start; }
.pr-msg-out { justify-content: flex-end; }
.pr-bubble {
    max-width: min(78%, 640px); padding: 10px 14px; border-radius: 18px;
    font-size: .95rem; line-height: 1.45; box-shadow: var(--pr-shadow);
    word-break: break-word; white-space: pre-wrap;
}
.pr-msg-in .pr-bubble { background: #fff; border-bottom-left-radius: 6px; }
.pr-msg-out .pr-bubble {
    background: var(--pr-grad); color: #fff; border-bottom-right-radius: 6px;
    box-shadow: var(--pr-shadow-brand);
}
.pr-bubble-name { display: block; font-size: .7rem; font-weight: 800; color: var(--pr-violet); margin-bottom: 3px; }
.pr-bubble-time { display: block; font-size: .63rem; opacity: .65; margin-top: 4px; text-align: right; }
.pr-chat-input {
    display: flex; gap: 9px;
    padding: 12px max(16px, 4vw) calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--pr-line);
    flex-shrink: 0; width: 100%; box-sizing: border-box;
}
.pr-chat-input input {
    flex: 1; border: 1px solid var(--pr-line); border-radius: 999px;
    padding: 12px 17px; font-size: .92rem; outline: 0; font-family: inherit;
    transition: border-color .2s var(--pr-ease), box-shadow .2s var(--pr-ease);
}
.pr-chat-input input:focus { border-color: var(--pr-primary); box-shadow: var(--pr-ring); }
.pr-chat-send {
    width: 47px; height: 47px; flex: 0 0 auto; border: 0; border-radius: 50%;
    background: var(--pr-grad); color: #fff; display: grid; place-items: center; cursor: pointer;
    box-shadow: var(--pr-shadow-brand);
    transition: transform .22s var(--pr-ease);
}
.pr-chat-send:hover { transform: scale(1.06); }
.pr-chat-send:active { transform: scale(.94); }
.pr-chat-send svg { width: 19px; height: 19px; }
.pr-chat-send[disabled] { opacity: .5; box-shadow: none; }

/* ---------- Video ---------- */

.pr-video-frame {
    width: 100%; aspect-ratio: 16 / 10; border-radius: var(--pr-radius);
    overflow: hidden; background: #080C18; border: 0;
}
.pr-video-full { width: 100%; height: calc(100vh - 130px); border: 0; background: #080C18; }

/* ---------- Bottom nav (mobile) ---------- */

.pr-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 620px; z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px) saturate(180%);
    border-top: 1px solid var(--pr-line);
    display: flex; padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -8px 28px -14px rgba(11, 16, 32, .28);
}
.pr-nav a {
    position: relative;
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 4px 13px; color: var(--pr-muted); font-size: .69rem; font-weight: 700;
    transition: color .22s var(--pr-ease), transform .22s var(--pr-ease);
}
.pr-nav a svg { width: 22px; height: 22px; transition: transform .26s var(--pr-ease); }
.pr-nav a.is-active { color: var(--pr-primary); }
.pr-nav a.is-active svg { transform: translateY(-2px) scale(1.08); stroke-width: 2.4; }
.pr-nav a.is-active::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 34px; height: 3px; border-radius: 0 0 6px 6px; background: var(--pr-grad);
}

/* ---------- Page layouts ---------- */

.pr-profile-layout, .pr-home-layout { display: grid; gap: 4px; }
.pr-profile-main, .pr-profile-side, .pr-home-main, .pr-home-side { min-width: 0; }

.pr-grid-auto { display: block; }
.pr-grid-auto > * { min-width: 0; }

/* ---------- Auth pages ---------- */

.pr-auth-body {
    background: #060914;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
    position: relative;
    overflow-x: hidden;
}

.pr-auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #0B1020;
}
.pr-auth-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    filter: blur(1.2px) saturate(1.05);
    transform: scale(1.06);
}
.pr-auth-bg-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(4, 8, 22, .9) 0%, rgba(7, 14, 34, .78) 45%, rgba(8, 16, 38, .7) 100%),
        radial-gradient(55% 50% at 12% 25%, rgba(37, 99, 235, .26), transparent 72%);
}

.pr-auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.pr-auth-topbar {
    flex: 0 0 auto;
    width: 100%;
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(4, 8, 22, .55), rgba(4, 8, 22, 0));
}
.pr-auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: calc(16px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 48px) 12px;
}
.pr-auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}
.pr-auth-logo-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 50px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}
.pr-auth-logo-tile img {
    /* width: 28px;
    height: 28px; */
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}
.pr-auth-brand-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pr-auth-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s var(--pr-ease), transform .2s var(--pr-ease);
}
.pr-auth-home-btn:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}

.pr-auth {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    flex: 1 1 auto;
    display: grid;
    align-content: center;
    align-items: center;
    gap: 28px;
    padding: 18px clamp(16px, 4vw, 48px) calc(28px + env(safe-area-inset-bottom, 0px));
}

.pr-auth-hero {
    color: #fff;
    text-align: center;
    animation: pr-fade-up .5s var(--pr-ease) both;
}
.pr-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .3);
    border: 1px solid rgba(147, 197, 253, .35);
    color: #DBEAFE;
    font-size: .8rem;
    font-weight: 700;
}
.pr-auth-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.85rem, 4.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.12;
    color: #fff;
}
.pr-auth-grad {
    background: linear-gradient(90deg, #93C5FD, #60A5FA, #818CF8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pr-auth-hero p {
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, .9);
    max-width: 460px;
}
.pr-auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: none; }
.pr-auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    font-size: .94rem;
    color: rgba(226, 232, 240, .9);
    line-height: 1.5;
}
.pr-auth-point-ico {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, .3);
    border: 1px solid rgba(96, 165, 250, .28);
    color: #BFDBFE;
}
.pr-auth-point-ico svg { width: 20px; height: 20px; }
.pr-auth-points strong { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; font-size: .98rem; }

.pr-auth-tagline {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 14px 20px;
    width: fit-content;
    max-width: 100%;
    border-radius: 18px;
    background: rgba(15, 23, 42, .5);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}
.pr-auth-tagline-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, .4);
    color: #fff;
}
.pr-auth-tagline-text {
    font-family: 'Caveat', cursive;
    font-size: 1.55rem;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: .02em;
}

.pr-auth-brand { text-align: center; color: #fff; }
.pr-auth-brand img { max-height: 58px; margin: 0 auto 14px; }
.pr-auth-brand h1 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
.pr-auth-brand p { margin: 0; font-size: .87rem; opacity: .8; }

.pr-auth-panel {
    min-width: 0;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    animation: pr-fade-up .55s var(--pr-ease) .08s both;
}
.pr-auth-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 26px 24px 22px;
    box-shadow: 0 30px 80px -18px rgba(0, 0, 0, .55);
}
.pr-auth-card-cap {
    position: absolute;
    top: -6px;
    right: 16px;
    pointer-events: none;
    filter: drop-shadow(0 8px 14px rgba(37, 99, 235, .35));
}
.pr-auth-card-head {
    margin: 0 52px 18px 0;
}
.pr-auth-card-head h2 {
    margin: 0 0 5px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0F172A;
}
.pr-auth-card-head p {
    margin: 0;
    font-size: .88rem;
    color: #64748B;
    line-height: 1.45;
}

.pr-auth-tabs {
    display: flex;
    gap: 8px;
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
}
.pr-auth-tabs button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: #F1F5F9;
    padding: 11px 12px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: background .2s var(--pr-ease), color .2s var(--pr-ease), box-shadow .2s var(--pr-ease);
}
.pr-auth-tabs button.is-active {
    background: #2563EB;
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .7);
}

.pr-auth-step-label {
    margin: 0 0 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #64748B;
}
.pr-auth-otp-hint {
    margin: 8px 0 0;
    font-size: .8rem;
    color: #64748B;
    line-height: 1.4;
}
.pr-auth-otp-hint strong { color: #1E293B; font-weight: 700; }
.pr-auth-otp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 12px;
}
.pr-auth-otp-resend,
.pr-auth-otp-change,
.pr-auth-link-btn {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    color: #2563EB;
    cursor: pointer;
}
.pr-auth-otp-resend.is-waiting,
.pr-auth-otp-resend:disabled {
    color: #94A3B8;
    cursor: default;
    opacity: 1;
}
.pr-auth-otp-resend[hidden],
.pr-auth-otp-change[hidden],
.pr-auth-otp-actions[hidden],
.pr-auth-otp-field[hidden] {
    display: none !important;
}
.pr-otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 2px;
}
.pr-otp-box {
    flex: 1 1 0;
    min-width: 0;
    max-width: 58px;
    height: 52px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pr-otp-box:focus {
    border-color: #2563EB;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.pr-field.is-error .pr-otp-box {
    border-color: #EF4444;
}
.pr-auth-card .pr-input-ico input.is-readonly,
.pr-auth-card .pr-input-ico input[readonly] {
    background: #EEF2FF;
    color: #334155;
    cursor: default;
}
.pr-auth-panel-tab[hidden],
.pr-auth-otp-step[hidden],
.pr-auth-form[hidden] { display: none !important; }
.pr-auth-login-link {
    margin: 10px 0 0;
    font-size: .82rem;
    color: #64748B;
}
.pr-auth-login-link a {
    color: #2563EB;
    font-weight: 700;
    text-decoration: none;
}
.pr-auth-login-link a:hover { text-decoration: underline; }

.pr-auth-card .pr-field { margin-bottom: 13px; }
.pr-auth-card .pr-field label {
    font-size: .8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.pr-input-ico {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    overflow: visible;
    transition: border-color .2s var(--pr-ease), box-shadow .2s var(--pr-ease), background .2s var(--pr-ease);
}
.pr-input-ico:focus-within {
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
    background: #fff;
}
.pr-input-ico-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
    display: inline-flex;
    z-index: 1;
}
.pr-input-eye {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 6;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}
.pr-input-eye:hover,
.pr-input-eye:focus {
    color: #0F172A;
    background: #EEF2F7;
    outline: none;
}
.pr-input-eye svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
/* Only one eye glyph visible at a time */
.pr-input-eye svg.eye-off,
.pr-input-eye.is-showing svg.eye-on {
    display: none !important;
}
.pr-input-eye.is-showing svg.eye-off {
    display: block !important;
}
/* Hide browser-native password reveal so it doesn't fight our button */
.pr-auth-card .pr-input-ico input[type="password"]::-ms-reveal,
.pr-auth-card .pr-input-ico input[type="password"]::-ms-clear,
.pr-auth-card .pr-input-ico input::-webkit-credentials-auto-fill-button,
.pr-auth-card .pr-input-ico input::-webkit-strong-password-auto-fill-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.pr-auth-card .pr-input-ico input,
.pr-auth-card .pr-input-ico select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    border-radius: 12px;
    padding: 13px 12px 13px 40px;
    color: #0F172A;
    font-size: .94rem;
    appearance: none;
    box-shadow: none;
}
/* Reserve space so text never runs under the eye */
.pr-auth-card .pr-input-ico--password input {
    padding-right: 48px;
}
.pr-auth-card .pr-input-ico select {
    /* Native select is replaced by PadhaiSearchableSelect in auth forms */
    background-image: none;
    padding-right: 12px;
}
.pr-auth-card .pr-input-ico input:focus,
.pr-auth-card .pr-input-ico select:focus {
    border: 0;
    box-shadow: none;
    background: transparent;
    outline: none;
}
.pr-auth-card .pr-field.is-error .pr-input-ico {
    border-color: var(--pr-danger) !important;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}
.pr-auth-card .pr-field input::placeholder { color: #94A3B8; }

/* Password + confirm: full width so eye never crowds the text */
.pr-auth-card .pr-grid-2.pr-grid-2--passwords {
    grid-template-columns: 1fr;
}

/* ---------- Register: readable spacing, dropdowns above fields ---------- */
.is-auth-register .pr-auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
}
.is-auth-register .pr-auth-top {
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: 6px;
}
.is-auth-register .pr-auth-logo-tile {
    width: 130px;
    height: 50px;
    border-radius: 10px;
}
.is-auth-register .pr-auth-brand-name { font-size: .92rem; }
.is-auth-register .pr-auth-home-btn {
    padding: 7px 12px;
    font-size: .8rem;
}
.is-auth-register .pr-auth-card {
    padding: 20px 20px 16px;
    border-radius: 20px;
    overflow: visible;
}
.is-auth-register .pr-auth-card-cap { display: none; }
.is-auth-register .pr-auth-card-head {
    margin: 0 0 14px;
}
.is-auth-register .pr-auth-card-head h2 {
    font-size: 1.22rem;
    margin: 0;
}
.is-auth-register .pr-auth-card-head p { display: none; }
.is-auth-register .pr-auth-step-label {
    margin: 0 0 12px;
    font-size: .72rem;
    letter-spacing: .04em;
}
.is-auth-register .pr-auth-tabs {
    margin-bottom: 14px;
    gap: 8px;
}
.is-auth-register .pr-auth-tabs button {
    padding: 9px 12px;
    font-size: .82rem;
    border-radius: 999px;
}
.is-auth-register .pr-auth-card .pr-field {
    margin-bottom: 14px;
    position: relative;
}
.is-auth-register .pr-auth-card .pr-field:has(.padhai-select.is-open) {
    z-index: 40;
}
.is-auth-register .pr-auth-card .pr-field label {
    font-size: .78rem;
    margin-bottom: 6px;
}
.is-auth-register .pr-grid-2 {
    gap: 14px;
    margin-bottom: 2px;
    align-items: start;
}
.is-auth-register .pr-grid-2 > .pr-field {
    min-width: 0;
}
.is-auth-register .pr-auth-card .pr-input-ico {
    min-height: 46px;
}
.is-auth-register .pr-auth-card .pr-input-ico input,
.is-auth-register .pr-auth-card .pr-input-ico select {
    padding: 11px 12px 11px 38px;
    font-size: .9rem;
}
.is-auth-register .pr-auth-card .pr-input-ico--password input {
    padding-right: 44px;
}
.is-auth-register .pr-input-ico-left {
    left: 11px;
}
.is-auth-register .pr-input-ico-left svg {
    width: 16px;
    height: 16px;
}
.is-auth-register .pr-input-eye {
    width: 34px;
    height: 34px;
    right: 4px;
}
.is-auth-register .pr-auth-card .pr-input-ico .padhai-select-trigger {
    padding: 11px 34px 11px 38px;
    min-height: 46px;
    font-size: .9rem;
}
.is-auth-register .pr-auth-card .padhai-select-dropdown {
    position: absolute;
    z-index: 80;
}
.is-auth-register .pr-auth-card .padhai-select-list {
    max-height: 200px;
}
.is-auth-register .pr-auth-agree {
    margin: 6px 0 14px;
    font-size: .8rem;
    gap: 10px;
}
.is-auth-register .pr-auth-submit {
    min-height: 48px !important;
    font-size: .94rem !important;
    border-radius: 12px !important;
}
.is-auth-register .pr-auth-or {
    margin: 12px 0 8px;
    font-size: .7rem;
}
.is-auth-register .pr-auth-foot-in {
    font-size: .84rem;
}
.is-auth-register .pr-auth-teacher-note {
    padding: 10px 12px;
    font-size: .8rem;
    margin-bottom: 12px;
}
.is-auth-register .pr-field-error {
    font-size: .74rem;
    margin-top: 4px;
}
.is-auth-register .pr-auth-otp-hint {
    margin-top: 6px;
}

/* Auth searchable selects — match input shell, open below field */
.pr-auth-card {
    --border: #E2E8F0;
    --surface: #fff;
    --text: #0F172A;
    --text-muted: #94A3B8;
    --primary: #2563EB;
    --primary-soft: rgba(37, 99, 235, .12);
    --bg: #F8FAFC;
}
.pr-auth-card .pr-input-ico .padhai-select {
    width: 100%;
    min-width: 0;
}
.pr-auth-card .pr-input-ico .padhai-select-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 13px 36px 13px 40px;
    min-height: 48px;
    border-radius: 12px;
    color: #0F172A;
    font-size: .94rem;
    font-weight: 500;
}
.pr-auth-card .pr-input-ico .padhai-select-trigger.is-placeholder {
    color: #94A3B8;
}
.pr-auth-card .pr-input-ico .padhai-select-trigger:hover:not(:disabled),
.pr-auth-card .pr-input-ico .padhai-select.is-open .padhai-select-trigger {
    border: 0;
    background: transparent;
    box-shadow: none;
}
.pr-auth-card .pr-input-ico .padhai-select-trigger::after {
    border-color: #94A3B8;
}
.pr-auth-card .padhai-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    z-index: 120;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}
.pr-auth-card .padhai-select-search {
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    color: #0F172A;
    font-size: .9rem;
    padding: 12px 14px;
}
.pr-auth-card .padhai-select-list {
    max-height: 220px;
    padding: 6px;
}
.pr-auth-card .padhai-select-option {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .9rem;
    color: #0F172A;
}
.pr-auth-card .padhai-select-option:hover,
.pr-auth-card .padhai-select-option.is-selected {
    background: rgba(37, 99, 235, .1);
    color: #1D4ED8;
}
.pr-auth-card .padhai-select-empty {
    color: #94A3B8;
}

.pr-auth-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 14px;
    font-size: .82rem;
    color: #475569;
    line-height: 1.45;
    cursor: pointer;
}
.pr-auth-agree input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #2563EB;
    flex: 0 0 auto;
}
.pr-auth-agree a {
    color: #2563EB;
    font-weight: 700;
    text-decoration: none;
}
.pr-auth-agree a:hover { text-decoration: underline; }

.pr-auth-submit {
    min-height: 50px;
    border-radius: 12px !important;
    background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 55%, #3B82F6 100%) !important;
    box-shadow: 0 14px 28px -12px rgba(37, 99, 235, .65) !important;
    font-size: 1rem !important;
}
.pr-auth-submit svg { margin-left: 2px; }

.pr-auth-bt-link {
    text-align: center;
    margin: 14px 0 0;
    font-size: .84rem;
    color: #64748B;
}
.pr-auth-bt-link a {
    color: #2563EB;
    font-weight: 700;
}

.pr-auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 10px;
    color: #94A3B8;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
}
.pr-auth-or::before,
.pr-auth-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}
.pr-auth-foot-in {
    text-align: center;
    margin: 0;
    font-size: .9rem;
    color: #64748B;
}
.pr-auth-foot-in a {
    color: #2563EB;
    font-weight: 800;
    text-decoration: none;
}
.pr-auth-foot-in a:hover { text-decoration: underline; }

.pr-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .is-auth-register .pr-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .is-auth-register .pr-grid-2 > .pr-field {
        margin-bottom: 14px;
    }
}

@media (max-width: 460px) {
    .pr-grid-2 { grid-template-columns: 1fr; }
    .pr-auth-card { padding: 20px 16px 16px; border-radius: 18px; }
    .pr-auth-card-head { margin-right: 42px; }
    .pr-auth-card-head h2 { font-size: 1.22rem; }
    .pr-auth-brand-name { font-size: .88rem; }
    .pr-auth-home-btn { padding: 8px 12px; font-size: .8rem; }
    .pr-auth-hero h1 { font-size: 1.7rem; }
    .pr-field input, .pr-field select, .pr-field textarea,
    .pr-auth-card .pr-input-ico input,
    .pr-auth-card .pr-input-ico select { font-size: 16px; }
    .pr-qactions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-dash-hero { flex-direction: column; align-items: flex-start; }
    .pr-promo .pr-btn { width: 100%; }
    .pr-main { padding: 0 12px 18px; }
    .pr-search input { font-size: 16px; }
}

@media (max-width: 999px) {
    .pr-auth-hero { order: 0; }
    .pr-auth-panel { order: 1; max-width: 480px; }
    .is-auth-register .pr-auth-panel { max-width: 560px; }
}

@media (min-width: 1000px) {
    .pr-auth {
        grid-template-columns: minmax(0, 1.15fr) minmax(420px, 460px);
        gap: clamp(40px, 6vw, 80px);
        padding-top: 8px;
        padding-bottom: 36px;
    }
    .pr-auth-hero { text-align: left; }
    .pr-auth-hero p { margin-left: 0; margin-right: 0; }
    .pr-auth-points { display: block; max-width: 520px; }
    .pr-auth-tagline { display: inline-flex; }
    .pr-auth-panel { margin: 0; max-width: none; width: 100%; }
    .is-auth-login .pr-auth { align-content: center; }

    /* Register: keep side-by-side hero + compact form */
    .is-auth-register .pr-auth {
        grid-template-columns: minmax(0, 1.1fr) minmax(460px, 560px);
        align-content: center;
        align-items: center;
        gap: clamp(28px, 4vw, 56px);
        padding-top: 8px;
        padding-bottom: 20px;
    }
    .is-auth-register .pr-auth-hero {
        display: block;
    }
    .is-auth-register .pr-auth-hero h1 {
        font-size: clamp(1.7rem, 3.2vw, 2.5rem);
        margin-bottom: 10px;
    }
    .is-auth-register .pr-auth-hero p {
        font-size: .95rem;
    }
    .is-auth-register .pr-auth-badge {
        margin-bottom: 12px;
        padding: 6px 12px;
        font-size: .76rem;
    }
    .is-auth-register .pr-auth-points {
        margin-top: 20px;
    }
    .is-auth-register .pr-auth-points li {
        margin-bottom: 12px;
        font-size: .88rem;
    }
    .is-auth-register .pr-auth-point-ico {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    .is-auth-register .pr-auth-tagline {
        margin-top: 22px;
        padding: 10px 16px;
    }
    .is-auth-register .pr-auth-panel {
        max-width: none;
        width: 100%;
    }
    .is-auth-register .pr-auth-card {
        max-height: none;
        overflow: visible;
    }
}

/* ---------- Misc ---------- */

.pr-empty { text-align: center; padding: 38px 18px; color: var(--pr-muted); animation: pr-fade-in .35s var(--pr-ease) both; }
.pr-empty svg { width: 46px; height: 46px; opacity: .3; margin: 0 auto 10px; }
.pr-empty p { margin: 0; font-size: .88rem; }

.pr-skeleton {
    background: linear-gradient(90deg, #EAEEF7 25%, #F5F7FC 50%, #EAEEF7 75%);
    background-size: 200% 100%; animation: pr-shimmer 1.3s infinite;
    border-radius: var(--pr-radius-sm); height: 70px; margin-bottom: 12px;
}

.pr-toast-wrap {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(var(--pr-nav-h) + 18px); z-index: 90;
    width: calc(100% - 32px); max-width: 430px; pointer-events: none;
}
.pr-toast {
    background: rgba(11, 16, 32, .96); color: #fff; border-radius: var(--pr-radius-sm);
    padding: 13px 16px; font-size: .86rem; margin-top: 8px;
    box-shadow: var(--pr-shadow-lg); animation: pr-rise .26s var(--pr-ease);
    backdrop-filter: blur(8px);
}
.pr-toast--error { background: rgba(185, 28, 28, .97); }
.pr-toast--success { background: rgba(4, 120, 87, .97); }

.pr-sheet-backdrop {
    position: fixed; inset: 0; background: rgba(11, 16, 32, .55);
    z-index: 60; display: none; backdrop-filter: blur(3px);
}
.pr-sheet-backdrop.is-open { display: block; animation: pr-fade-in .2s linear both; }
.pr-sheet {
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 480px;
    z-index: 70;
    background: #fff;
    border-radius: 22px;
    padding: 20px 20px 18px;
    box-shadow: var(--pr-shadow-lg);
    animation: pr-sheet-center .22s var(--pr-ease);
    max-height: min(86dvh, 760px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
}
.pr-sheet-handle { display: none; }
.pr-sheet h3 { margin: 0 0 14px; font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; }

.pr-safety-sheet {
    text-align: center;
    padding: 18px 18px 20px;
}
.pr-safety-art {
    margin: 0 auto 12px;
    width: min(100%, 260px);
}
.pr-safety-art img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}
.pr-safety-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.pr-safety-sheet h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
    line-height: 1.25;
}
.pr-safety-msg {
    margin: 0 0 14px;
    color: var(--pr-muted, #64748b);
    font-size: .9rem;
    line-height: 1.55;
    text-align: left;
}
.pr-safety-points {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 8px;
}
.pr-safety-points li {
    position: relative;
    padding: 10px 12px 10px 36px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-size: .84rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}
.pr-safety-points li::before {
    content: '!';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FEE2E2;
    color: #DC2626;
    font-size: .75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-create-room .pr-field { margin-bottom: 14px; }
.pr-create-room .pr-btn--block { margin-top: 4px; }

.pr-locked-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pr-locked-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: #EEF2FF;
    color: #1E3A8A;
    font-size: .84rem;
    font-weight: 700;
    border: 1px solid #C7D2FE;
}
.pr-locked-tag--exam {
    background: #ECFDF5;
    color: #065F46;
    border-color: #A7F3D0;
}

.pr-peer-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.pr-create-peers {
    max-height: 220px;
    min-height: 72px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--pr-line);
    border-radius: 16px;
    background: #fff;
}
.pr-peer-empty {
    padding: 28px 16px;
    text-align: center;
}
.pr-peer-empty strong {
    display: block;
    font-size: .92rem;
    margin-bottom: 4px;
}
.pr-peer-empty span {
    display: block;
    color: var(--pr-muted);
    font-size: .78rem;
    line-height: 1.4;
}
.pr-peer-pick {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--pr-line);
    background: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.pr-peer-pick:last-child { border-bottom: 0; }
.pr-peer-pick:hover { background: #F8F9FE; }
.pr-peer-pick.is-selected { background: #F0F4FF; }
.pr-peer-pick.is-disabled { opacity: .45; cursor: not-allowed; }
.pr-peer-pick .pr-avatar,
.pr-peer-pick .pr-avatar--sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 auto;
    object-fit: cover;
}
.pr-peer-pick .pr-row-text {
    flex: 1;
    min-width: 0;
}
.pr-peer-pick .pr-row-text strong {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pr-peer-pick .pr-row-text small {
    display: block;
    color: var(--pr-muted);
    font-size: .75rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pr-peer-tick {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    flex: 0 0 auto;
    position: relative;
    background: #fff;
}
.pr-peer-pick.is-selected .pr-peer-tick {
    background: var(--pr-primary);
    border-color: var(--pr-primary);
}
.pr-peer-pick.is-selected .pr-peer-tick::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pr-inline-loader {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .38); border-top-color: #fff;
    animation: pr-spin .7s linear infinite; display: inline-block;
}
.pr-inline-loader--dark { border-color: rgba(67, 56, 202, .25); border-top-color: var(--pr-primary); }

.pr-muted { color: var(--pr-muted); }
.pr-amount { font-variant-numeric: tabular-nums; font-weight: 800; }
.pr-hr { height: 1px; background: var(--pr-line); border: 0; margin: 18px 0; }
.pr-back {
    display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: -6px;
    cursor: pointer; background: transparent; border: 0; color: inherit; border-radius: 12px;
    transition: background .2s var(--pr-ease), transform .2s var(--pr-ease);
}
.pr-back:hover { background: rgba(11, 16, 32, .06); transform: translateX(-2px); }
.pr-back svg { width: 22px; height: 22px; }

/* ---------- Tablet ---------- */

@media (min-width: 720px) {
    .pr-shell { max-width: 780px; }
    .pr-nav { max-width: 780px; }
    .pr-main { padding: 0 22px 24px; }
    .pr-topbar { padding: 18px 22px; }

    .pr-people { grid-template-columns: repeat(3, 1fr); }

    .pr-grid-auto {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 14px;
        align-items: stretch;
    }
    .pr-grid-auto > * { margin-bottom: 0 !important; }
    .pr-grid-auto > .pr-empty,
    .pr-grid-auto > .pr-alert { grid-column: 1 / -1; }
}

/* ---------- Desktop: full-width website layout ---------- */

@media (min-width: 1024px) {
    .pr-app {
        display: grid;
        grid-template-columns: var(--pr-sidebar-w) minmax(0, 1fr);
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 100vh;
    }

    .pr-sidebar {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        height: 100vh;
        padding: 22px 14px;
        background: var(--pr-grad-rail);
        color: #fff;
        overflow: hidden;
    }
    .pr-sidebar::before {
        content: ''; position: absolute; inset: -30% -60% auto -60%; height: 70%;
        background: radial-gradient(50% 50% at 50% 50%, rgba(124, 58, 237, .5), transparent 70%);
        animation: pr-aurora 22s var(--pr-ease) infinite;
        pointer-events: none;
    }

    .pr-sidebar-brand {
        position: relative;
        display: flex; align-items: center; gap: 12px;
        padding: 8px 10px 10px; margin-bottom: 10px;
    }
    .pr-sidebar-brand img {
        width: 168px; height: auto; object-fit: contain;
        border-radius: 8px; background: rgba(255, 255, 255, .96);
        padding: 0px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6);
    }
    .pr-sidebar-brand strong { display: block; font-size: .98rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
    .pr-sidebar-brand small { display: block; color: rgba(255, 255, 255, .58); font-size: .74rem; margin-top: 2px; }

    .pr-sidebar-nav {
        position: relative;
        display: flex; flex-direction: column; gap: 3px;
        flex: 1; overflow-y: auto; padding: 0 2px;
    }
    .pr-sidebar-nav a {
        position: relative;
        display: flex; align-items: center; gap: 12px;
        padding: 12px 14px; border-radius: var(--pr-radius-sm);
        color: rgba(255, 255, 255, .72); font-size: .9rem; font-weight: 600;
        transition: background .22s var(--pr-ease), color .22s var(--pr-ease), transform .22s var(--pr-ease);
    }
    .pr-sidebar-nav a svg { width: 20px; height: 20px; flex: 0 0 auto; transition: transform .26s var(--pr-ease); }
    .pr-sidebar-nav a:hover {
        background: rgba(255, 255, 255, .09);
        color: #fff;
        transform: translateX(3px);
    }
    .pr-sidebar-nav a:hover svg { transform: scale(1.1); }
    .pr-sidebar-nav a.is-active {
        background: rgba(255, 255, 255, .14);
        color: #fff;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
    }
    .pr-sidebar-nav a.is-active::before {
        content: ''; position: absolute; left: -2px; top: 22%; bottom: 22%;
        width: 3px; border-radius: 999px;
        background: linear-gradient(180deg, #A5B4FC, #22D3EE);
        box-shadow: 0 0 12px rgba(165, 180, 252, .9);
    }

    .pr-sidebar-foot {
        position: relative;
        padding-top: 14px; margin-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }
    .pr-sidebar-user {
        display: flex; align-items: center; gap: 11px;
        padding: 10px; border-radius: var(--pr-radius-sm);
        transition: background .2s var(--pr-ease);
    }
    .pr-sidebar-user:hover { background: rgba(255, 255, 255, .1); }
    .pr-sidebar-user .pr-avatar { background: rgba(255, 255, 255, .16); color: #fff; }
    .pr-sidebar-user strong { display: block; font-size: .86rem; font-weight: 700; color: #fff; }
    .pr-sidebar-user small { display: block; color: rgba(255, 255, 255, .55); font-size: .72rem; }

    .pr-nav--mobile { display: none !important; }

    .pr-shell {
        max-width: none;
        width: 100%;
        margin: 0;
        min-height: 100vh;
        padding: 4px 30px 40px;
    }

    .pr-topbar {
        background: transparent;
        backdrop-filter: none;
        padding: 24px 2px 14px;
        max-width: 1760px; margin: 0 auto;
    }
    .pr-topbar-profile { display: none; }
    .pr-greet strong { font-size: 1rem; letter-spacing: -.04em; }
    .pr-greet small { font-size: .82rem; }

    .pr-main { max-width: 1760px; margin: 0 auto; padding: 0 2px 30px; }

    .pr-profile-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 22px; align-items: start;
    }
    .pr-home-layout {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 24px; align-items: start;
    }

    .pr-people { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .pr-stats { grid-template-columns: repeat(4, 1fr); }
    .pr-stats--3 { grid-template-columns: repeat(3, 1fr); }

    .pr-card:hover { transform: translateY(-2px); box-shadow: var(--pr-shadow-lg); }

    .pr-chat-shell { max-width: none; width: 100%; height: 100dvh; height: 100vh; margin: 0; }

    .pr-sheet {
        max-width: 480px;
        left: calc(50% + (var(--pr-sidebar-w) / 2));
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .pr-toast-wrap { left: calc(50% + (var(--pr-sidebar-w) / 2)); bottom: 28px; }
}

@media (min-width: 1600px) {
    :root { --pr-sidebar-w: 276px; }
    .pr-shell { padding-left: 46px; padding-right: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}



/* Note image previews */
.pr-note-preview {
    margin-top: 12px;
    padding: 12px;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    background: #F8FAFC;
}
.pr-note-preview img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}
.pr-note-preview-meta {
    margin-top: 8px;
    font-size: .78rem;
    color: #64748B;
    word-break: break-word;
}
.pr-note-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: #EEF2FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.pr-note-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pr-note-thumb--file {
    font-size: 1.25rem;
    color: #64748B;
}
.pr-note-media {
    display: block;
    margin: 0 0 12px;
    border-radius: 14px;
    overflow: hidden;
    background: #F1F5F9;
}
.pr-note-media img {
    display: block;
    width: 100%;
    max-height: 160px;
    height: 160px;
    object-fit: cover;
}

.pr-note-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.pr-note-card-body {
    flex: 1 1 auto;
    min-height: 0;
}
.pr-note-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.35;
}
.pr-note-card-meta {
    display: block;
    margin-top: 4px;
    font-size: .78rem;
    color: var(--pr-muted);
}
.pr-note-card-desc {
    margin: 8px 0 0;
    font-size: .84rem;
    line-height: 1.4;
    color: var(--pr-muted);
    word-break: break-word;
}
.pr-note-card-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 2px;
}
.pr-note-card-foot .pr-amount {
    flex: 1;
    font-size: 1.05rem;
}
.pr-note-more {
    display: inline-flex;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pr-primary);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}
.pr-note-more:hover { text-decoration: underline; }

.pr-note-popup { padding-top: 2px; }
.pr-note-popup-media {
    margin: 0 0 14px;
    border-radius: 14px;
    overflow: hidden;
    background: #F1F5F9;
}
.pr-note-popup-media img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
}
.pr-note-popup-desc {
    margin: 12px 0 0;
    font-size: .92rem;
    line-height: 1.55;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 42vh;
    overflow-y: auto;
}
.pr-note-popup-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F8F9FE;
    border: 1px solid var(--pr-line);
}
.pr-note-popup-price span {
    font-size: .8rem;
    color: var(--pr-muted);
}
.pr-note-popup-price strong {
    font-size: 1.15rem;
}
