/* Account, community, membership and release pages. */
.yp-secondary, .yp-release {
  --text: var(--text-primary);
  --bg: var(--bg-page);
  --white: var(--bg-card);
  color: var(--text);
}
.yp-secondary {
  box-sizing: border-box;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 28px 16px 44px;
  min-width: 0;
}
.yp-secondary :where(h1, h2, h3, p, a, strong, li) { overflow-wrap: anywhere; }
.yp-secondary :where(a, button, input, select, textarea, [contenteditable]):focus-visible,
.yp-release :where(a, button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.yp-secondary .breadcrumb { flex-wrap: wrap; padding: 0; margin: 0 0 18px; background: transparent; box-shadow:  none; font-size: 13px; }
.yp-secondary .breadcrumb a { color: var(--text-muted); }
.yp-secondary .breadcrumb a:hover { color: var(--primary); }
.yp-secondary .alert { border-radius: 6px; }
.yp-secondary .yp-empty-icon, .yp-secondary .request-empty .empty-icon {
  display: block; margin: 0 auto 14px; color: var(--text-secondary); font-size: 27px;
}
.yp-secondary .empty-tip, .yp-secondary .request-empty {
  padding: 58px 18px; border: 1px dashed var(--border); border-radius: 8px;
  background: var(--bg-card); color: var(--text-muted); box-shadow:  none; font-size: 14px;
}
.yp-secondary .empty-tip a, .yp-secondary .request-empty a { color: var(--primary-hover); font-weight: 650; }

.yp-auth {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .72fr); align-items: center;
  gap: clamp(24px, 6vw, 90px); max-width: 1030px; min-height: min(720px, calc(100vh - 150px));
  padding: 44px 28px 64px;
}
.yp-auth-intro img { display: block; width: 64px; height: 64px; }
.yp-auth-intro h1 { margin: 18px 0 12px; font-size: clamp(32px, 4vw, 48px); font-weight: 850; line-height: 1.1; }
.yp-auth-intro p { max-width: 25em; margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.8; }
.yp-auth .auth-card {
  width: 100%; min-width: 0; max-width: none; padding: 24px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg-card); box-shadow:  0 8px 28px rgb(32 35 43 / 8%);
}
.yp-auth .auth-card h2 { margin: 0 0 20px; color: var(--text); font-size: 22px; line-height: 1.35; }
.yp-auth .form-label { color: var(--text); font-size: 14px; font-weight: 650; }
.yp-auth .form-label small { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.yp-auth .form-control { min-height: 46px; border: 1px solid var(--brand-border); border-radius: 7px; background: var(--bg-card); }
.yp-auth .form-control:focus { border-color: var(--brand-border); box-shadow:  0 0 0 3px var(--focus-ring); }
.yp-auth .btn-submit { width: 100%; min-height: 44px; background: var(--primary); color: var(--on-action); border: 0; border-radius: 6px; font-weight: 650; }
.yp-auth .btn-submit:hover { background: var(--primary-hover); }
.yp-auth .auth-footer { margin-top: 18px; font-size: 13px; }
.yp-captcha-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block: 8px; }
.yp-captcha-row img { max-width: 100%; height: auto; }
.yp-captcha-row button { min-height: 38px; border: 1px solid var(--border); background: var(--bg-card); cursor: pointer; }

.yp-account { min-height: 65vh; }
.yp-account-heading, .yp-account-who, .yp-member-link { display: flex; align-items: center; }
.yp-account-heading { justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.yp-account-who { gap: 14px; min-width: 0; }
.yp-account-who > div:last-child { min-width: 0; }
.yp-account-who h1, .yp-community .request-head h1, .yp-sponsors .request-head h1, .yp-help > h1 {
  margin: 0 0 5px; font-size: 24px; font-weight: 700; line-height: 1.4;
}
.yp-account-who strong { font-size: 14px; }
.yp-account-who p { margin: 2px 0 0; color: var(--text-muted); font-size: 12px; }
.yp-account .profile-avatar { width: 52px; height: 52px; box-shadow:  none; }
.yp-member-link {
  gap: 13px; min-width: 210px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card); box-shadow:  0 10px 26px rgb(32 35 43 / 8%); color: var(--primary);
}
.yp-member-link > span { display: grid; flex: 1; gap: 2px; }
.yp-member-link small { color: var(--text-muted); font-size: 11px; }
.yp-member-link strong { color: var(--text); font-size: 13px; }
.yp-member-link .fa-chevron-right { font-size: 11px; }
.yp-account .profile-tabs-wrap { background: transparent; border: none; box-shadow:  none; }
.yp-account-tabs { display: flex; gap: 26px; margin-bottom: 22px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: thin; }
.yp-account-tabs .profile-tab {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px;
  width: auto; padding: 13px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  color: var(--text-secondary); background: transparent; font-size: 14px; white-space: nowrap;
}
.yp-account-tabs .profile-tab:hover, .yp-account-tabs .profile-tab.active { color: var(--primary); background: transparent; border-bottom-color: var(--primary); }
.yp-account .profile-section { padding: 0; }
.yp-account .profile-grid { grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 22px 16px; }
.yp-account .profile-post-card { background: transparent; border: 0; box-shadow:  none; }
.yp-account .profile-post-card:hover { color: var(--primary); transform: none; }
.yp-account .profile-post-img, .yp-account .profile-post-img-ph {
  display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; background: var(--bg-card);
}
.yp-account .profile-post-img-ph { display: grid; place-content: center; }
.yp-account .profile-post-img-ph img { width: 28px; height: 28px; opacity: .5; }
.yp-account .profile-post-info { padding: 8px 0 0; }
.yp-account .profile-post-title { font-size: 14px; font-weight: 600; }
.yp-account .profile-request-card, .yp-account .notification-item { border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); }
.yp-account .notification-item.unread { border-color: var(--brand-border); background: var(--bg-card); }
.yp-account .notification-icon { color: var(--primary); background: var(--primary-light); }

.yp-vip-head { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 16px; margin-bottom: 22px; }
.yp-vip-intro, .yp-vip-benefits { display: grid; align-content: center; min-width: 0; padding: 26px; border-radius: 8px; }
.yp-vip-intro { min-height: 160px; border: 1px solid var(--brand-border); background: var(--vip-bg); }
.yp-vip-intro h1 { margin: 8px 0; font-size: clamp(30px,4vw,48px); font-weight: 800; line-height: 1.15; }
.yp-vip-intro p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.yp-vip-benefits { list-style: none; gap: 12px; margin: 0; border: 1px solid var(--border); background: var(--bg-card); box-shadow:  0 12px 28px rgb(32 35 43 / 8%); }
.yp-vip-benefits li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.yp-vip-benefits i { width: 18px; color: var(--primary); }
.yp-vip .vip-plan-grid { grid-template-columns: repeat(auto-fit, minmax(min(222px,100%),1fr)); gap: 14px; }
.yp-vip .vip-plan-card {
  min-height: 0; min-width: 0; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); box-shadow:  0 10px 22px rgb(32 35 43 / 8%);
}
.yp-vip .vip-plan-card.is-recommended { border-color: var(--vip-text); box-shadow:  0 16px 32px rgb(32 35 43 / 8%); }
.yp-vip .vip-plan-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; min-height: 0; }
.yp-vip .vip-plan-top h2 { margin: 0; font-size: 18px; }
.yp-vip .vip-plan-badge { position: static; padding: 3px 8px; height: auto; border-radius: 8px; background: var(--bg-card); color: var(--vip-text); box-shadow:  none; font-size: 12px; font-weight: 600; line-height: 1.6; }
.yp-vip .yp-plan-summary, .yp-vip .vip-plan-comparison { margin: 0; color: var(--text-secondary); font-size: 13px; font-weight: 400; line-height: 1.65; }
.yp-vip .vip-plan-comparison { color: var(--vip-text); }
.yp-vip .vip-price { font-size: 32px; }
.yp-vip .vip-plan-card li i { color: var(--vip-text); }
.yp-vip .vip-plan-card button, .yp-vip .vip-plan-card .vip-login-link, .yp-checkout .vip-pay-form button { border: 0; border-radius: 6px; background: var(--primary); color: var(--on-action); font-size: 14px; font-weight: 650; }
.yp-vip .vip-plan-card button:hover, .yp-vip .vip-plan-card .vip-login-link:hover { background: var(--primary-hover); }
.yp-vip .vip-note { margin-top: 22px; padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); box-shadow:  none; }
.yp-vip .vip-note i { color: var(--primary); }
.yp-checkout { max-width: 780px; }
.yp-checkout .vip-order-card { padding: clamp(18px,4vw,32px); border: 1px solid var(--brand-border); border-radius: 8px; background: var(--vip-bg); box-shadow:  0 16px 36px rgb(32 35 43 / 8%); }
.yp-checkout .vip-order-head { gap: 18px; flex-wrap: wrap; }
.yp-checkout .vip-order-head h1 { font-size: clamp(26px,4vw,38px); }
.yp-checkout .vip-order-lines { border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); }
.yp-checkout .vip-order-lines > div { align-items: start; gap: 16px; }
.yp-checkout .vip-order-lines strong { min-width: 0; overflow-wrap: anywhere; }
.yp-checkout .pay-tip-card, .yp-checkout .yp-error-card { padding: clamp(25px,5vw,52px); border: 1px solid var(--border); border-radius: 8px; box-shadow:  0 8px 28px rgb(32 35 43 / 8%); background: var(--bg-card); text-align: center; }
.yp-checkout .pay-tip-icon { background: var(--bg-card); color: var(--primary); }
.yp-error-card h1 { margin: 10px 0 20px; font-size: 24px; }
.yp-error-icon { font-size: 30px; color: var(--primary); }
.yp-error-card .btn { display: inline-flex; align-items: center; margin-top: 12px; padding: 9px 16px; border-radius: 6px; background: var(--primary); color: var(--on-action); }

.yp-community { max-width: 1140px; }
.yp-community-layout { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: clamp(18px,3.5vw,48px); align-items: start; }
.yp-community-nav, .yp-help-index { display: grid; position: sticky; top: 88px; align-content: start; gap: 5px; }
.yp-community-nav a, .yp-help-index a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; font-size: 14px; color: var(--text-secondary); }
.yp-community-nav a:hover, .yp-help-index a:hover, .yp-community-nav a[aria-current] { color: var(--primary); background: var(--bg-hover); }
.yp-community-nav i { width: 17px; text-align: center; }
.yp-community-feed { min-width: 0; }
.yp-secondary .request-head { padding: 0 0 16px; margin: 0 0 16px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow:  none; }
.yp-secondary .request-new-btn, .yp-secondary .request-submit-btn { flex: 0 0 auto; border-radius: 6px; background: var(--primary); box-shadow:  none; color: var(--on-action); }
.yp-secondary .request-new-btn:hover, .yp-secondary .request-submit-btn:hover { background: var(--primary-hover); }
.yp-secondary .request-new-btn:disabled { color: var(--text-muted); background: var(--bg-card); }
.yp-community .request-filter { padding: 0; margin-bottom: 16px; background: transparent; box-shadow:  none; border: 0; }
.yp-community .request-priority-note { color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--brand-border); border-radius: 6px; font-weight: 500; }
.yp-community .request-priority-note i { color: var(--primary); }
.yp-community .request-filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.yp-community .request-chip { border-radius: 6px; background: var(--bg-card); color: var(--text-secondary); }
.yp-community .request-chip.active, .yp-community .request-chip:hover { background: var(--bg-hover); color: var(--primary); }
.yp-secondary .request-list { gap: 0; padding: 0 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); }
.yp-secondary .request-card { min-width: 0; margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow:  none; }
.yp-secondary .request-card:last-child { border-bottom: 0; }
.yp-secondary .request-card-main { padding: 0; }
.yp-secondary .request-card-main:hover h2 { color: var(--primary); }
.yp-secondary .request-list-meta .meta-item { border: 0; background: transparent; color: var(--text-muted); box-shadow:  none; }
.yp-secondary .request-list-meta .meta-item i { color: var(--text-secondary); }
.yp-secondary .forum-topic-pinned { background: var(--bg-card); }
.yp-secondary .request-card-image { border-radius: 6px; }
.yp-secondary .request-list-admin-actions { margin: 6px 0 0; }
.yp-discussion { max-width: 1000px; }
.yp-editor, .yp-sponsors { max-width: 960px; }
.yp-secondary .request-detail, .yp-secondary .request-comments, .yp-secondary .request-form-card {
  padding: clamp(16px,3.2vw,30px); border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); box-shadow:  none; overflow-wrap: anywhere;
}
.yp-secondary .request-detail h1, .yp-secondary .request-form-card h1 { font-size: clamp(21px,3vw,28px); }
.yp-secondary .request-comments { margin-top: 18px; }
.yp-secondary .request-comments-head h2 { font-size: 19px; }
.yp-secondary .request-form-warning { color: var(--text-secondary); border: 1px solid var(--brand-border); background: var(--bg-card); font-weight: 500; }
.yp-secondary .request-form-warning i { color: var(--primary); }
.yp-secondary .request-form :where(input,select,textarea) { min-width: 0; max-width: 100%; border-radius: 6px; }
.yp-secondary .sponsor-contact { background: var(--bg-card); }
.yp-secondary .request-detail-actions { flex-wrap: wrap; }
.yp-secondary .request-detail :where(img, video), .yp-secondary .request-comments img { max-width: 100%; }

.yp-help { max-width: 1100px; }
.yp-help-layout { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: start; gap: clamp(16px,4vw,52px); margin-top: 24px; }
.yp-help .help-content { padding: 0 clamp(16px,3vw,28px); border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); }
.yp-help .help-section { margin: 0; padding: 22px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow:  none; scroll-margin-top: 82px; }
.yp-help .help-section:last-child { border-bottom: 0; }
.yp-help .help-section h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 18px; }
.yp-help .help-tip, .yp-help .help-domains { border-radius: 6px; border: 1px solid var(--brand-border); background: var(--bg-card); color: var(--text-secondary); }

.yp-release { min-height: 100vh; background: var(--bg-card); }
.yp-release .release-page { padding: clamp(16px,4vw,48px) 16px; }
.yp-release .release-card { width: min(100%,960px); padding: clamp(18px,4vw,36px); border: 1px solid var(--border); border-radius: 8px; box-shadow:  0 10px 28px rgb(32 35 43 / 8%); }
.yp-release .release-topbar { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.yp-release .release-brand img { border-radius: 8px; }
.yp-release .yp-release-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: clamp(18px,4vw,40px); align-items: center; margin: 20px 0 26px; }
.yp-release .release-card h1 { font-size: clamp(26px,4vw,40px); }
.yp-release .release-recommend-card { margin: 0; padding: 18px; border-color: var(--brand-border); border-radius: 8px; background: var(--bg-card); }
.yp-release .release-line-item, .yp-release .release-tips, .yp-release .release-save-box { border-color: var(--border); border-radius: 8px; }
.yp-release .release-line-item.fastest, .yp-release .release-save-box { border-color: var(--brand-border); background: var(--bg-card); box-shadow:  none; }
.yp-release .release-reco-visit:not(.disabled), .yp-release .release-line-copy, .yp-release .release-save-box button { background: var(--primary); border-color: var(--primary); color: var(--on-action); border-radius: 6px; }
.yp-release .release-line-visit, .yp-release .release-bookmark-btn { color: var(--primary); border: 1px solid var(--brand-border); border-radius: 6px; background: var(--bg-card); }
.yp-release .release-save-box > i { color: var(--primary); background: var(--bg-card); }
.yp-release .release-section-head h2, .yp-release .release-tips h2 { font-size: 18px; }
@media (max-width: 760px) {
  .yp-secondary { padding: 20px 12px 32px; }
  .yp-auth { display: block; max-width: 460px; min-height: 0; padding: 24px 16px 40px; }
  .yp-auth-intro { margin-bottom: 16px; }
  .yp-auth-intro img { width: 40px; height: 40px; }
  .yp-auth-intro h1 { margin: 10px 0 6px; font-size: 27px; }
  .yp-auth-intro p { font-size: 14px; }
  .yp-auth .auth-card { padding: 18px; }
  .yp-account-heading { display: grid; gap: 14px; margin-bottom: 12px; }
  .yp-member-link { min-width: 0; }
  .yp-account-tabs { gap: 18px; margin-bottom: 16px; }
  .yp-account-tabs .profile-tab { min-height: 42px; font-size: 13px; }
  .yp-account .profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 10px; }
  .yp-vip-head { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .yp-vip-intro, .yp-vip-benefits { min-height: 0; padding: 16px; }
  .yp-vip-benefits { gap: 8px; }
  .yp-community-layout, .yp-help-layout { display: block; }
  .yp-community-nav, .yp-help-index { position: static; display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 15px; }
  .yp-community-nav a, .yp-help-index a { padding: 7px 10px; color: var(--text-secondary); background: var(--bg-card); font-size: 13px; }
  .yp-secondary .request-head { align-items: flex-start; gap: 10px; }
  .yp-secondary .request-list { padding-inline: 12px; }
  .yp-secondary .request-form { grid-template-columns: minmax(0,1fr); }
  .yp-checkout .vip-order-price, .yp-secondary .request-detail-actions { max-width: 100%; }
  .yp-release .yp-release-grid { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .yp-release .release-line-item { align-items: flex-start; }
}
@media (max-width: 420px) {
  .yp-secondary .request-head { flex-wrap: wrap; }
  .yp-release .release-line-item, .yp-release .release-section-head { flex-wrap: wrap; }
  .yp-release .release-line-actions { flex-wrap: wrap; }
}

.yp-auth .auth-card, .yp-secondary dialog { background: var(--bg-elevated); }
.yp-secondary :is(input:not([type=checkbox]):not([type=radio]), textarea, select, [contenteditable=true]) { background-color: var(--bg-input); color: var(--text-primary); }
.yp-secondary :is(input, textarea, select, [contenteditable=true]):focus { border-color: var(--primary); }
.yp-vip .vip-plan-card.is-recommended, .yp-vip .yp-vip-intro, .yp-checkout .vip-order-card { background: var(--vip-bg); }
.yp-vip :is(.vip-price,.vip-eyebrow,.yp-vip-benefits i), .yp-checkout .vip-order-price { color: var(--vip-text); }
.yp-vip .vip-plan-card :is(button,.vip-login-link), .yp-checkout .vip-pay-form button { background: var(--vip-text); color: var(--on-action); border-color: var(--vip-text); }
.yp-vip .vip-plan-card :is(button,.vip-login-link):hover { background: color-mix(in srgb, var(--vip-text) 88%, black); color: var(--on-action); }
body.yp-release { background: var(--bg-page); }

.yp-vip .vip-price em, .yp-checkout .vip-order-price em { color: inherit; }
