/* 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-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: 800; 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: 13px 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--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; }

/* ---------- 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: .86rem; 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; }
.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: 1.3rem; font-weight: 800; 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 / 4;
    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: var(--pr-grad-rail);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;   /* page must still scroll vertically — tall forms depend on it */
}
.pr-auth-body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(38% 38% at 18% 16%, rgba(109, 40, 217, .5), transparent 62%),
        radial-gradient(36% 36% at 84% 72%, rgba(14, 165, 233, .4), transparent 64%);
    animation: pr-aurora 20s var(--pr-ease) infinite;
}
.pr-auth {
    position: relative; z-index: 1;
    width: 100%; max-width: 520px; margin: 0 auto;
    min-height: 100vh; min-height: 100dvh;
    display: grid; align-content: center; gap: 24px;
    padding: 32px 18px calc(40px + 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-hero img { max-height: 58px; width: auto; margin: 0 auto 14px; animation: pr-float 5s var(--pr-ease) infinite; }
.pr-auth-hero h1 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.pr-auth-hero p { margin: 0; font-size: .9rem; line-height: 1.55; color: rgba(255, 255, 255, .74); }
.pr-auth-points { list-style: none; margin: 22px 0 0; padding: 0; display: none; }
.pr-auth-points li {
    display: flex; align-items: flex-start; gap: 11px;
    margin-bottom: 14px; font-size: .92rem; color: rgba(255, 255, 255, .84); line-height: 1.5;
}
.pr-auth-points svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; color: #A5B4FC; }
.pr-auth-points strong { display: block; color: #fff; font-weight: 700; }

/* Legacy alias — older views may still use .pr-auth-brand */
.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; letter-spacing: -.03em; }
.pr-auth-brand p { margin: 0; font-size: .87rem; opacity: .8; }

.pr-auth-panel { min-width: 0; animation: pr-fade-up .55s var(--pr-ease) .08s both; }
.pr-auth-card {
    background: rgba(255, 255, 255, .98); border-radius: 24px; padding: 22px;
    box-shadow: var(--pr-shadow-lg);
}
.pr-auth-tabs { display: flex; gap: 6px; background: #F1F3FA; border-radius: var(--pr-radius-sm); padding: 4px; margin-bottom: 18px; }
.pr-auth-tabs button {
    flex: 1; border: 0; background: transparent; padding: 11px; border-radius: 11px;
    font-size: .87rem; font-weight: 700; color: var(--pr-muted); cursor: pointer;
    transition: background .22s var(--pr-ease), color .22s var(--pr-ease), box-shadow .22s var(--pr-ease);
}
.pr-auth-tabs button.is-active { background: #fff; color: var(--pr-primary); box-shadow: var(--pr-shadow); }
.pr-auth-foot { text-align: center; margin: 18px 0 0; font-size: .88rem; color: rgba(255, 255, 255, .82); }
.pr-auth-foot a { color: #fff; font-weight: 700; text-decoration: underline; }

/* Phones: never squeeze two inputs side by side, and keep 16px so iOS doesn't zoom. */
@media (max-width: 460px) {
    .pr-grid-2 { grid-template-columns: 1fr; }
    .pr-auth-card { padding: 18px; border-radius: 20px; }
    .pr-auth-hero h1 { font-size: 1.38rem; }
    .pr-field input, .pr-field select, .pr-field textarea { 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 (min-width: 700px) {
    .pr-auth { max-width: 560px; padding: 40px 24px 48px; }
    .pr-auth-card { padding: 28px; }
}

/* Website-style split: story on the left, form on the right. */
@media (min-width: 1000px) {
    .pr-auth {
        max-width: 1120px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
        align-items: center;
        gap: 64px;
        padding: 48px 40px;
    }
    .pr-auth-hero { text-align: left; }
    .pr-auth-hero img { margin: 0 0 20px; max-height: 68px; }
    .pr-auth-hero h1 { font-size: 2.4rem; }
    .pr-auth-hero p { font-size: 1rem; max-width: 440px; }
    .pr-auth-points { display: block; }
    .pr-auth-foot { text-align: left; }
}

/* ---------- 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%; transform: translateX(-50%);
    bottom: 0; width: 100%; max-width: 620px; z-index: 70;
    background: #fff; border-radius: 26px 26px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--pr-shadow-lg); animation: pr-sheet-up .28s var(--pr-ease);
    max-height: 88vh; overflow-y: auto;
}
.pr-sheet-handle { width: 44px; height: 5px; border-radius: 999px; background: #D6DCEA; margin: 0 auto 16px; }
.pr-sheet h3 { margin: 0 0 14px; font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; }

.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; }



.bgf {
    background: rgb(245 246 254);
    width: max-content;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .bga {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}
/* ---------- 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: start;
    }
    .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 22px; margin-bottom: 10px;
    }
    .pr-sidebar-brand img {
        width: 44px; height: 44px; object-fit: contain;
        border-radius: 14px; background: rgba(255, 255, 255, .96);
        padding: 5px; 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: 1.6rem; 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: 540px; left: calc(50% + (var(--pr-sidebar-w) / 2)); }
    .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;
    }
}


