/* 顶部用户浮框：底部快捷入口 */

.action-hover-menu .ptg-hover-nav-wrap {
    padding-top: 12px !important;
    border-top: 1px solid rgba(229, 167, 81, 0.18);
}

.action-hover-menu .ptg-hover-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.action-hover-menu .ptg-hover-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 68px;
    padding: 10px 4px 8px;
    border-radius: 12px;
    text-decoration: none !important;
    color: #5a4632 !important;
    background: #fffdf8;
    border: 1px solid rgba(229, 167, 81, 0.16);
    box-shadow: none;
    float: none !important;
    width: auto !important;
    font-size: 12px;
    line-height: 1.2;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.action-hover-menu .ptg-hover-nav__item:hover,
.action-hover-menu .ptg-hover-nav__item:focus {
    color: #c47a1a !important;
    background: linear-gradient(180deg, #fff8ec 0%, #fff1d6 100%);
    border-color: rgba(229, 167, 81, 0.45);
    box-shadow: 0 6px 14px rgba(196, 122, 26, 0.1);
    transform: translateY(-1px);
}

.action-hover-menu .ptg-hover-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffe9c4 0%, #ffd9a0 100%);
    color: #c47a1a;
}

.action-hover-menu .ptg-hover-nav__icon i {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 14px;
    line-height: 1;
}

.action-hover-menu .ptg-hover-nav__label {
    display: block;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

[data-bs-theme="dark"] .action-hover-menu .ptg-hover-nav-wrap {
    border-top-color: rgba(229, 167, 81, 0.16);
}

[data-bs-theme="dark"] .action-hover-menu .ptg-hover-nav__item {
    color: #efe6d8 !important;
    background: rgba(48, 40, 30, 0.55);
    border-color: rgba(229, 167, 81, 0.16);
}

[data-bs-theme="dark"] .action-hover-menu .ptg-hover-nav__item:hover,
[data-bs-theme="dark"] .action-hover-menu .ptg-hover-nav__item:focus {
    color: #e5a751 !important;
    background: rgba(70, 52, 28, 0.7);
    border-color: rgba(229, 167, 81, 0.38);
}

[data-bs-theme="dark"] .action-hover-menu .ptg-hover-nav__icon {
    background: linear-gradient(135deg, #463628 0%, #5a4028 100%);
    color: #e5a751;
}

.action-hover-menu .avatar-warp {
    position: relative;
}

.ptg-inbox-avatar {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.ptg-inbox-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    z-index: 2;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

.action-hover-menu .ptg-hover-nav__icon {
    position: relative;
}

.action-hover-menu .ptg-hover-nav__icon .ptg-inbox-badge {
    top: -7px;
    right: -8px;
    box-shadow: 0 0 0 2px #fffdf8;
}

[data-bs-theme="dark"] .ptg-inbox-badge {
    box-shadow: 0 0 0 2px #1c1c1e;
}

[data-bs-theme="dark"] .action-hover-menu .ptg-hover-nav__icon .ptg-inbox-badge {
    box-shadow: 0 0 0 2px #3a3024;
}

.ptg-hover-ai-quota {
    background: linear-gradient(90deg, rgba(229, 167, 81, 0.18), rgba(255, 80, 0, 0.12));
    border: 1px solid rgba(229, 167, 81, 0.35);
}

.ptg-ai-used-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ptg-ai-used-bars.is-compact {
    gap: 8px;
}

.ptg-ai-used-group {
    padding: 10px 10px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(229, 167, 81, 0.18);
}

.ptg-ai-used-group.is-booster {
    background: rgba(255, 248, 236, 0.7);
    border-color: rgba(229, 167, 81, 0.35);
}

.ptg-ai-used-group-hd {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 800;
    color: #5a4632;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.ptg-ai-used-group-title {
    font-weight: 800;
}

.ptg-ai-used-group-reset {
    font-size: 11px;
    font-weight: 600;
    color: #8a6a2f;
}

.ptg-ai-used-group-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ptg-ai-used-row {
    display: block;
}

.ptg-ai-used-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.ptg-ai-used-label {
    font-size: 12px;
    font-weight: 600;
    color: #6f5a46;
}

.ptg-ai-used-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ptg-ai-used-pct {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    color: #8a6a2f;
}

.ptg-ai-used-track {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.ptg-ai-used-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #72aee6, #2271b1);
    min-width: 0;
    transition: width 0.35s ease;
}

.ptg-ai-used-row.is-chat .ptg-ai-used-fill {
    background: linear-gradient(90deg, #72aee6, #2271b1);
}

.ptg-ai-used-row.is-voice .ptg-ai-used-fill {
    background: linear-gradient(90deg, #34c759, #0a7a3e);
}

.ptg-ai-used-row.is-booster .ptg-ai-used-fill,
.ptg-ai-used-group.is-booster .ptg-ai-used-fill {
    background: linear-gradient(90deg, #ff8c00, #ff5000);
}

.ptg-ai-used-row.is-gift .ptg-ai-used-fill,
.ptg-ai-used-group.is-gift .ptg-ai-used-fill {
    background: linear-gradient(90deg, #34d399, #059669);
}

.ptg-ai-used-hint {
    margin-top: 4px;
    font-size: 11px;
    color: #8a6a2f;
    line-height: 1.35;
}

.ptg-ai-used-booster-meta b {
    color: #c47a12;
    font-weight: 700;
}

.ptg-ai-used-recharge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5000, #ff8c00);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.5;
}

.ptg-ai-used-bars.is-compact .ptg-ai-used-group {
    padding: 8px;
}

.ptg-ai-used-bars.is-compact .ptg-ai-used-group-hd {
    font-size: 11px;
    margin-bottom: 6px;
}

.ptg-ai-used-bars.is-compact .ptg-ai-used-hint {
    display: none;
}

.ptg-ai-quota-tabs {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(229, 167, 81, 0.18);
    overflow: hidden;
}

.ptg-ai-quota-tablist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ptg-ai-quota-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 8px 4px 7px;
    cursor: pointer;
    color: #8a6a2f;
    line-height: 1.2;
}

.ptg-ai-quota-tab.is-on {
    color: #c47a12;
    background: rgba(255, 255, 255, 0.62);
    border-bottom-color: #e5a751;
}

.ptg-ai-quota-tab-name,
.ptg-ai-quota-tab-pct {
    display: block;
}

.ptg-ai-quota-tab-name {
    font-size: 12px;
    font-weight: 800;
}

.ptg-ai-quota-tab-pct {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
}

.ptg-ai-quota-panel {
    padding: 8px 10px 10px;
}

.ptg-ai-quota-panel[hidden] {
    display: none !important;
}

[data-bs-theme="dark"] .ptg-ai-quota-tabs {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(229, 167, 81, 0.22);
}

[data-bs-theme="dark"] .ptg-ai-quota-tab {
    color: #cbbba8;
}

[data-bs-theme="dark"] .ptg-ai-quota-tab.is-on {
    color: #f0d5a0;
    background: rgba(255, 255, 255, 0.06);
    border-bottom-color: #e5a751;
}

[data-bs-theme="dark"] .ptg-ai-used-group {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(229, 167, 81, 0.22);
}

[data-bs-theme="dark"] .ptg-ai-used-group.is-booster {
    background: rgba(255, 140, 0, 0.1);
}

[data-bs-theme="dark"] .ptg-ai-used-group-hd,
[data-bs-theme="dark"] .ptg-ai-used-label {
    color: #f0d5a0;
}

[data-bs-theme="dark"] .ptg-ai-used-group-reset,
[data-bs-theme="dark"] .ptg-ai-used-pct,
[data-bs-theme="dark"] .ptg-ai-used-hint {
    color: #cbbba8;
}

[data-bs-theme="dark"] .ptg-ai-used-track {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .ptg-ai-used-booster-meta b {
    color: #f0d5a0;
}

.action-hover-menu .ptg-hover-id {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.action-hover-menu .ptg-hover-id__name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.action-hover-menu .ptg-hover-id__coin {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 3px 8px 2px;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.12);
    color: #9a5b10 !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.action-hover-menu .ptg-hover-id__coin strong {
    font-size: 13px;
    font-weight: 900;
    color: #ff5000;
}

[data-bs-theme="dark"] .action-hover-menu .ptg-hover-id__coin,
html[data-bs-theme="dark"] .action-hover-menu .ptg-hover-id__coin {
    background: rgba(255, 176, 32, 0.16);
    color: #ffd27a !important;
}

[data-bs-theme="dark"] .action-hover-menu .ptg-hover-id__coin strong,
html[data-bs-theme="dark"] .action-hover-menu .ptg-hover-id__coin strong {
    color: #ffb24a;
}

.ptg-vip-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.ptg-plan-tag {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ptg-plan-tag--trial {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.14);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.4);
}

.ptg-plan-tag--lite {
    color: #b86e00;
    background: rgba(255, 176, 32, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 160, 0, 0.45);
}

.ptg-plan-tag--plus {
    color: #fff;
    background: linear-gradient(90deg, #ff8c00, #ff5000);
}

.ptg-plan-tag--pro {
    color: #6d4db5;
    background: rgba(124, 92, 191, 0.14);
    box-shadow: inset 0 0 0 1px rgba(124, 92, 191, 0.4);
}

[data-bs-theme="dark"] .ptg-plan-tag--trial {
    color: #99f6e4;
    background: rgba(20, 184, 166, 0.18);
}

[data-bs-theme="dark"] .ptg-plan-tag--lite {
    color: #ffd27a;
    background: rgba(255, 176, 32, 0.18);
}

[data-bs-theme="dark"] .ptg-plan-tag--pro {
    color: #d4c4ff;
    background: rgba(124, 92, 191, 0.22);
}
