/* =========================================================
   ProNovel accounts: header avatar menu, auth pages, profile, settings, history
   ========================================================= */
.pn-avatar-btn { width: 44px; height: 44px; padding: 0; border: 2px solid rgba(0, 0, 0, .15); border-radius: 50%; overflow: hidden; background: #1c1924; display: block; cursor: pointer; }
.pn-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-avatar-btn:hover { border-color: rgba(0, 0, 0, .35); }
.pn-avatar { border-radius: 50%; object-fit: cover; }

.pn-user-drop { width: 300px; padding: 10px; border-radius: 10px; background: #1a1821; }
.pn-user-menu .pn-dropdown a { display: flex; }
.pn-ud-head { align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.pn-user-menu .pn-dropdown .pn-ud-head:hover { background: rgba(255, 255, 255, .04); color: inherit; }
.pn-ud-head img { width: 40px; height: 40px; flex-shrink: 0; }
.pn-ud-head span, .pn-ud-text { display: flex; flex-direction: column; min-width: 0; }
.pn-ud-head strong { font-size: 14px; color: #fff; }
.pn-ud-head small, .pn-ud-text small { font-size: 12px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-user-menu .pn-dropdown a.pn-ud-promo { display: block; margin: 8px 0; padding: 12px; border-radius: 8px; border: 1px solid rgba(168, 85, 247, .6); background: linear-gradient(135deg, rgba(124, 58, 237, .25), rgba(30, 20, 50, .6)); }
.pn-user-menu .pn-dropdown a.pn-ud-promo:hover { color: inherit; border-color: #a855f7; }
.pn-ud-promo small { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #d8b4fe; text-transform: uppercase; }
.pn-ud-promo small .pn-icon { width: 12px; height: 12px; }
.pn-ud-promo strong { display: block; font-size: 14px; color: #fff; margin: 4px 0; }
.pn-ud-promo span { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: #c084fc; }
.pn-ud-promo span .pn-icon { width: 12px; height: 12px; }
.pn-ud-item { align-items: center; gap: 12px; padding: 9px 8px; border-radius: 8px; }
.pn-user-menu .pn-dropdown .pn-ud-item:hover { background: rgba(255, 255, 255, .05); color: inherit; }
.pn-ud-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #26232f; color: #b9b4c7; flex-shrink: 0; }
.pn-ud-icon .pn-icon { width: 16px; height: 16px; }
.pn-ud-text { flex: 1; }
.pn-ud-text strong { font-size: 14px; font-weight: 600; color: #fff; }
.pn-ud-chev { width: 14px; height: 14px; color: rgba(255, 255, 255, .3); }
.pn-user-menu .pn-dropdown a.pn-ud-logout { justify-content: center; align-items: center; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 8px; background: #26232f; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.pn-user-menu .pn-dropdown a.pn-ud-logout:hover { background: #312d3c; color: #fff; }

/* Alerts & forms */
.pn-alert { padding: 11px 14px; border-radius: var(--pn-radius); font-size: 14px; margin: 0 0 16px; border: 1px solid; text-align: left; }
.pn-alert-success { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); color: #86efac; }
.pn-alert-error { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.pn-form { display: flex; flex-direction: column; gap: 14px; }
.pn-field { display: flex; flex-direction: column; gap: 6px; }
.pn-field[hidden] { display: none; }
.pn-field > span:first-child { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.pn-field > span:first-child a { font-weight: 500; color: var(--pn-accent); }
.pn-field input, .pn-field textarea {
	width: 100%; padding: 11px 13px; border-radius: var(--pn-radius); border: 1px solid var(--pn-border); background: #13111a; color: #fff; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.pn-field input:focus, .pn-field textarea:focus { border-color: var(--pn-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pn-accent) 25%, transparent); }
.pn-field input:disabled { opacity: .6; }
.pn-field small { font-size: 12px; color: rgba(255, 255, 255, .45); }
.pn-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pn-pass { position: relative; display: block; }
.pn-pass input { padding-right: 44px; }
.pn-pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: rgba(255, 255, 255, .5); display: grid; place-items: center; }
.pn-pass-toggle:hover { color: #fff; }
.pn-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .75); cursor: pointer; }
.pn-check input { accent-color: var(--pn-accent); width: 16px; height: 16px; }
.pn-btn-block { width: 100%; }
.pn-btn-danger { background: #dc2626; color: #fff; }
.pn-btn-danger:hover { color: #fff; }
.pn-btn-danger-text { color: #f87171; }
.pn-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Auth pages */
.pn-auth { min-height: calc(100vh - var(--pn-header-h) - 140px); display: grid; place-items: center; padding: 40px 16px 60px; }
.pn-auth-card { width: 100%; max-width: 420px; padding: 32px 28px; border-radius: 12px; background: var(--pn-surface); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .7); text-align: center; }
.pn-auth-card .pn-form { text-align: left; margin-top: 4px; }
.pn-auth-logo { display: inline-flex; margin-bottom: 14px; }
.pn-auth-logo .pn-logo { height: 52px; }
.pn-auth-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: 14px; background: color-mix(in srgb, var(--pn-accent) 20%, transparent); color: #d8b4fe; }
.pn-auth-icon .pn-icon { width: 24px; height: 24px; }
.pn-auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.pn-auth-sub { color: rgba(255, 255, 255, .6); font-size: 14px; margin: 0 0 22px; }
.pn-auth-switch { margin: 20px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); }
.pn-auth-switch a { color: var(--pn-accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pn-account-page .pn-promo { display: none; }
.pn-account-login .pn-notice, .pn-account-register .pn-notice, .pn-account-forgot .pn-notice, .pn-account-reset .pn-notice { display: none; }

/* Profile */
.pn-profile { padding-top: 24px; padding-bottom: 50px; max-width: 1100px; }
.pn-profile > .pn-alert { margin-bottom: 16px; }
.pn-profile-card { border-radius: 10px; overflow: hidden; background: var(--pn-surface); margin-bottom: 16px; }
.pn-profile-banner { height: 200px; background: linear-gradient(120deg, #2e1065, #5b21b6 55%, #1d1b22); background-size: cover; background-position: center; }
.pn-profile-head { display: flex; align-items: flex-end; gap: 16px; padding: 0 24px; margin-top: -48px; }
.pn-profile-avatar { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; border: 4px solid var(--pn-surface); flex-shrink: 0; background: var(--pn-surface); }
.pn-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pn-profile-who { flex: 1; min-width: 0; padding-bottom: 6px; }
.pn-profile-who h1 { font-size: 22px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-profile-who span { font-size: 13px; color: rgba(255, 255, 255, .5); }
.pn-profile-head .pn-btn { margin-bottom: 8px; }
.pn-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 24px 24px; }
.pn-pstat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; background: #1c1924; }
.pn-pstat > span:last-child { display: flex; flex-direction: column; }
.pn-pstat strong { font-size: 18px; line-height: 1.2; }
.pn-pstat small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.pn-pstat-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.pn-pstat-icon .pn-icon { width: 18px; height: 18px; }
.c-purple { background: rgba(168, 85, 247, .15); color: #c084fc; }
.c-pink { background: rgba(236, 72, 153, .15); color: #f472b6; }
.c-blue { background: rgba(59, 130, 246, .15); color: #60a5fa; }
.c-amber { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.pn-profile-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 8px; background: var(--pn-surface); margin-bottom: 16px; }
.pn-profile-tabs a { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px; border-radius: 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.pn-profile-tabs a.is-active { background: linear-gradient(90deg, rgba(124, 58, 237, .35), rgba(124, 58, 237, .15)); color: #fff; }
.pn-profile-tabs em { font-style: normal; font-size: 12px; opacity: .6; }
.pn-profile .pn-panel + .pn-panel { margin-top: 16px; }
.pn-profile-bio p { margin: 0; color: rgba(255, 255, 255, .8); }
.pn-grid-sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.pn-profile-comments { list-style: none; margin: 0; padding: 0; }
.pn-profile-comments li { padding: 14px 0; border-bottom: 1px solid var(--pn-border); }
.pn-profile-comments li:last-child { border: 0; }
.pn-pc-where { font-weight: 600; font-size: 14px; color: var(--pn-hl); }
.pn-profile-comments time { margin-left: 8px; font-size: 12px; color: rgba(255, 255, 255, .45); }
.pn-profile-comments p { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .8); }

/* Settings */
.pn-settings { padding-top: 24px; padding-bottom: 50px; max-width: 860px; }
.pn-settings-head { margin-bottom: 18px; }
.pn-settings-head h1 { font-size: 22px; margin: 0 0 4px; }
.pn-settings-head p { margin: 0 0 6px; font-size: 14px; }
.pn-settings-head .pn-link-muted { display: inline-flex; align-items: center; gap: 2px; }
.pn-set-block { padding: 22px 0; border-top: 1px solid var(--pn-border); }
.pn-set-block h2 { font-size: 16px; margin: 0 0 14px; }
.pn-set-block.pn-form h2 { margin-bottom: 0; }
.pn-set-block .pn-btn { align-self: flex-start; }
.pn-set-photo { display: flex; align-items: center; gap: 18px; }
.pn-set-photo > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pn-set-photo small { flex-basis: 100%; }
.pn-set-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.pn-inline { display: inline-flex; }
.pn-file-btn { position: relative; overflow: hidden; cursor: pointer; }
.pn-file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pn-set-banner { height: 150px; border-radius: 8px; margin-bottom: 12px; display: grid; place-items: center; font-size: 13px; color: rgba(255, 255, 255, .5); background: linear-gradient(120deg, #2e1065, #4c1d95 55%, #1d1b22); background-size: cover; background-position: center; }
.pn-set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pn-set-danger h2 { color: #f87171; }
.pn-set-signout { display: flex; justify-content: flex-end; }

/* History */
.pn-history { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.pn-history .pn-panel + .pn-panel { margin-top: 0; }
.pn-hist { display: flex; gap: 14px; padding: 14px; }
.pn-hist-cover { flex: 0 0 72px; border-radius: 6px; overflow: hidden; aspect-ratio: var(--pn-ratio); }
.pn-hist-cover .pn-cover-img { height: 100%; }
.pn-hist-body { flex: 1; min-width: 0; }
.pn-hist-body h3 { font-size: 15px; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-hist-body p { margin: 0 0 8px; font-size: 12px; }
.pn-hist-bar { height: 4px; border-radius: 4px; background: #2b2931; overflow: hidden; margin-bottom: 10px; }
.pn-hist-bar span { display: block; height: 100%; background: var(--pn-accent); }
.pn-hist-actions { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 1023px) {
	.pn-avatar-btn { width: 40px; height: 40px; }
	.pn-user-drop { position: fixed; top: calc(var(--pn-header-h) + 6px); right: 8px; left: auto; width: min(320px, calc(100vw - 16px)); }
}
@media (max-width: 767px) {
	.pn-profile, .pn-settings { padding-top: 12px; }
	.pn-profile-banner { height: 130px; }
	.pn-profile-head { flex-wrap: wrap; padding: 0 16px; margin-top: -40px; }
	.pn-profile-avatar { width: 84px; height: 84px; }
	.pn-profile-head .pn-btn { width: 100%; }
	.pn-profile-stats { grid-template-columns: 1fr 1fr; padding: 14px 16px 16px; }
	.pn-field-row { grid-template-columns: 1fr; }
	.pn-history { grid-template-columns: 1fr; }
	.pn-auth { padding-top: 24px; }
	.pn-auth-card { padding: 26px 18px; }
	.pn-set-photo { flex-direction: column; align-items: flex-start; }
}
