* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; background-color: #f2f2f7; color: #1a1a1a; -webkit-font-smoothing: antialiased; line-height: 1.4; }
#main-content { padding-bottom: 96px; }

#main-content select,
.device-search-panel select,
.add-device-panel select,
.add-device-form-row select,
.apple-add-panel select,
.codes-generate-panel select,
.codes-page select,
.my-modal-panel select,
.install-modal-panel select,
.recharge-modal-form select,
.reseller-form select {
    width: 100%;
    max-width: 100%;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #1e293b;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#main-content select:focus,
.device-search-panel select:focus,
.add-device-panel select:focus,
.add-device-form-row select:focus,
.apple-add-panel select:focus,
.codes-generate-panel select:focus,
.codes-page select:focus,
.my-modal-panel select:focus,
.install-modal-panel select:focus,
.recharge-modal-form select:focus,
.reseller-form select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.codes-generate-panel .form-control,
.codes-generate-panel .form-select {
    background-color: #f8fafc;
}
.codes-generate-panel .form-control:focus,
.codes-generate-panel .form-select:focus {
    background-color: #fff;
}

.ios-container { max-width: 100%; width: 100%; margin: 0 auto; min-height: 100vh; }
.content-area { padding: 16px 12px 20px; }
@media (min-width: 769px) {
    .content-area { padding: 24px 24px 28px; max-width: 720px; margin: 0 auto; }
    .stats-grid { gap: 16px; }
    .stat-card { padding: 20px 18px; }
    .stat-value { font-size: 22px; }
    .actions-grid { gap: 16px; }
    .action-item { padding: 20px 12px; }
    .action-text { font-size: 12px; }
    .section-card { padding: 24px; }
}
.stats-section { margin-bottom: 20px; margin-top: 0; }
.cert-stats-section {
    margin-bottom: 16px;
}
.cert-stats-section .section-card {
    padding: 10px 12px;
}
.cert-stat-merged {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 0 2px;
}
.cert-stat-item {
    text-align: center;
    flex: 1;
}
.cert-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
}
.cert-stat-value { font-size: 14px; font-weight: 700; color: #1e293b; }
.cert-stat-label { font-size: 9px; color: #64748b; margin-top: 2px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 18px 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent), var(--card-accent-light));
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.stat-card:active { transform: translateY(-2px) scale(0.98); }
.stat-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--icon-color), var(--icon-color-light));
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.stat-content { display: flex; flex-direction: column; }
.stat-value { font-size: 20px; font-weight: 700; color: #1e293b; margin-bottom: 4px; line-height: 1.2; }
.stat-label { font-size: 11px; color: #666; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .wallet { --card-accent: #0ea5e9; --card-accent-light: #38bdf8; --icon-color: #0ea5e9; --icon-color-light: #38bdf8; }
.stat-card .device { --card-accent: #6366f1; --card-accent-light: #818cf8; --icon-color: #6366f1; --icon-color-light: #818cf8; }
.stat-card .chart { --card-accent: #f59e0b; --card-accent-light: #fbbf24; --icon-color: #f59e0b; --icon-color-light: #fbbf24; }
.stat-card .trophy { --card-accent: #ec4899; --card-accent-light: #f472b6; --icon-color: #ec4899; --icon-color-light: #f472b6; }
.recharge-button {
    position: absolute; top: 10px; right: 10px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white; border: none; border-radius: 20px;
    padding: 6px 12px; font-size: 11px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 4px;
    transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35); z-index: 1;
}
.recharge-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.45); }
.recharge-button:active { transform: translateY(0) scale(0.95); }
.recharge-button i { font-size: 10px; }
.recharge-button span { font-size: 10px; }

.quick-actions { margin-bottom: 20px; }
.actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.action-item,
.action-item:hover,
.action-item:focus,
.action-item .action-text,
.action-item:hover .action-text,
.action-item:focus .action-text {
    text-decoration: none !important;
}
.action-item {
    display: flex; flex-direction: column; align-items: center;
    color: #1a1a1a;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
button.action-item { width: 100%; font: inherit; cursor: pointer; }
button.action-item:disabled { opacity: 0.75; cursor: not-allowed; }
.action-item:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.action-item:active { transform: translateY(-2px) scale(0.96); }
.action-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 15px; margin-bottom: 6px;
    background: linear-gradient(135deg, var(--action-color), var(--action-color-light));
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.action-text { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.3; color: #1e293b; }
.action-item .wallet { --action-color: #0ea5e9; --action-color-light: #38bdf8; }
.action-item .device { --action-color: #6366f1; --action-color-light: #818cf8; }
.action-item .app { --action-color: #8b5cf6; --action-color-light: #a78bfa; }
.action-item .user { --action-color: #64748b; --action-color-light: #94a3b8; }

.auth-page { padding-top: 24px; max-width: 400px; margin: 0 auto; }
.auth-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px; padding: 0 0 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.auth-tabs { display: flex; border-bottom: 1px solid rgba(0,0,0,0.08); }
.auth-tab {
    flex: 1; padding: 16px; border: none; background: none;
    font-size: 16px; font-weight: 600; color: #94a3b8;
    cursor: pointer; transition: color 0.2s;
}
.auth-tab.active { color: #0ea5e9; position: relative; }
.auth-tab.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
    height: 2px; background: linear-gradient(90deg, #0ea5e9, #38bdf8); border-radius: 1px;
}
.auth-panel { padding: 24px 24px 0; }
.auth-form-group { margin-bottom: 18px; }
.auth-label { display: block; font-size: 13px; font-weight: 500; color: #475569; margin-bottom: 8px; }
.auth-input {
    width: 100%; padding: 14px 16px; border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px; font-size: 15px; background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input::placeholder { color: #94a3b8; }
.auth-input:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.auth-btn {
    width: 100%; padding: 14px; margin-top: 8px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4); }
.auth-btn:active { transform: translateY(0); }
.auth-switch { text-align: center; padding-top: 20px; font-size: 14px; color: #64748b; }
.auth-switch-btn {
    background: none; border: none; color: #0ea5e9; font-weight: 600;
    cursor: pointer; padding: 0 4px; margin-left: 4px;
}
.auth-switch-btn:hover { text-decoration: underline; }

.error-page { padding-top: 48px; max-width: 400px; margin: 0 auto; text-align: center; }
.error-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 20px; padding: 32px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); border: 1px solid rgba(255, 255, 255, 0.6);
}
.error-icon { font-size: 48px; color: #f59e0b; margin-bottom: 16px; }
.error-title { font-size: 18px; font-weight: 600; color: #1e293b; margin: 0 0 12px; }
.error-msg { font-size: 15px; color: #64748b; line-height: 1.5; margin: 0 0 24px; word-break: break-word; }
.error-actions { display: flex; flex-direction: column; gap: 12px; }
.error-actions .auth-btn { text-decoration: none; text-align: center; }
.error-btn-outline {
    background: transparent !important; color: #0ea5e9 !important;
    border: 2px solid #0ea5e9 !important; box-shadow: none !important;
}
.error-btn-outline:hover { background: rgba(14, 165, 233, 0.08) !important; }

.section-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px; padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}
.section-header { display: flex; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.section-icon {
    width: 32px; height: 32px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white; font-size: 14px; margin-right: 12px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
.section-title { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 2px; }
.section-desc { font-size: 12px; color: #64748b; }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 14px; }
.list-item:last-child { border-bottom: none; }
.list-item .small { font-size: 12px; color: #64748b; }

.profile-card .section-header { margin-bottom: 8px; }
.compact-profile-card {
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.82) 100%);
}
.compact-profile-head {
    margin-bottom: 12px !important;
    padding-bottom: 10px;
}
.compact-profile-title {
    display: flex;
    align-items: center;
    min-width: 0;
}
.profile-card .profile-icon { background: linear-gradient(135deg, #0ea5e9, #38bdf8); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3); }
.profile-card-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 8px 0; }
.profile-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}
.profile-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.profile-identity-main {
    min-width: 0;
}
.profile-name {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}
.profile-balance {
    min-width: 118px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f0f9ff;
    text-align: right;
}
.profile-balance span {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1.3;
}
.profile-balance strong {
    display: block;
    margin-top: 2px;
    color: #0369a1;
    font-size: 18px;
    line-height: 1.2;
}
.profile-info-list { margin-bottom: 10px; }
.compact-profile-card .profile-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
}
.compact-profile-card #my-wechat-binding-body { display: contents; }
.profile-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 12px;
}
.compact-profile-card .profile-info-row {
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}
.profile-info-row:last-child { border-bottom: none; }
.compact-profile-card .profile-info-row:last-child { border: 1px solid #e2e8f0; }
.profile-label { color: #4b5563; font-weight: 500; }
.profile-value { color: #1f2937; text-align: right; }
.compact-profile-card .profile-label {
    flex: 0 0 auto;
    color: #64748b;
}
.compact-profile-card .profile-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.profile-membership-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 22px; padding: 3px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700; line-height: 1;
}
.profile-membership-badge.is-normal { color: #2563eb; background: #dbeafe; }
.profile-membership-badge.is-super { color: #047857; background: #d1fae5; }
.profile-membership-badge.is-danger { color: #b91c1c; background: #fee2e2; }
.profile-membership-badge.level-color-0 { color: #2563eb; background: #dbeafe; }
.profile-membership-badge.level-color-1 { color: #7c3aed; background: #ede9fe; }
.profile-membership-badge.level-color-2 { color: #be123c; background: #ffe4e6; }
.profile-membership-badge.level-color-3 { color: #0f766e; background: #ccfbf1; }
.profile-membership-badge.level-color-4 { color: #b45309; background: #fef3c7; }
.profile-membership-badge.level-color-5 { color: #0369a1; background: #e0f2fe; }
.profile-membership-badge.level-color-6 { color: #4338ca; background: #e0e7ff; }
.profile-membership-badge.level-color-7 { color: #047857; background: #d1fae5; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.compact-profile-card .profile-actions { flex-wrap: nowrap; }
.profile-actions-bottom {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.profile-change-pwd-btn {
    flex: 1; min-width: 80px; padding: 8px 12px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8); color: #fff;
    border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.compact-profile-card .profile-change-pwd-btn,
.compact-profile-card .profile-logout-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 10px;
}
.profile-change-pwd-btn:hover { opacity: 0.9; }
.profile-logout-btn {
    flex: 1; min-width: 80px; padding: 8px 12px;
    background: #f3f4f6; color: #ef4444;
    border: none; border-radius: 6px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.profile-logout-btn:hover { background: #fee2e2; }
.profile-logout-btn:active { background: #fecaca; }
.compact-profile-card .profile-change-pwd-btn,
.compact-profile-card .profile-logout-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 10px;
}
.profile-loading { color: #64748b; font-size: 12px; padding: 8px 0; }
.token-tip-text { color: #9ca3af; font-size: 12px; margin-top: 10px; line-height: 1.5; }
.official-link-card {
    padding: 16px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-color: rgba(14, 165, 233, 0.18);
}
.official-link-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.75fr) auto;
    align-items: center;
    gap: 12px;
}
.official-link-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.official-link-icon {
    margin-right: 0;
    background: linear-gradient(135deg, #0284c7, #22c55e);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.22);
}
.official-link-url {
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    background: rgba(255,255,255,0.78);
    color: #334155;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.official-link-actions {
    flex-wrap: nowrap;
}

.poster-promo-card {
    display: block;
    margin-bottom: 16px;
    border-radius: 21px;
    background: transparent;
    border: 0;
    box-shadow: 0 14px 34px rgba(88, 80, 170, 0.16);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.poster-promo-card:visited,
.poster-promo-card:hover,
.poster-promo-card:focus,
.poster-promo-card:active,
.poster-promo-card * {
    text-decoration: none !important;
}
.poster-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(88, 80, 170, 0.2);
}
.poster-promo-card:active { transform: translateY(0); }
.poster-promo-inner {
    position: relative;
    min-height: 118px;
    overflow: hidden;
    border-radius: 21px;
    padding: 18px 150px 18px 18px;
    background:
        radial-gradient(circle at 88% 16%, rgba(255,255,255,0.24) 0, rgba(255,255,255,0) 30%),
        linear-gradient(135deg, #6768f4 0%, #7c5df2 48%, #9b5cf6 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.poster-promo-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}
.poster-promo-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 9px;
    border-radius: 999px;
    background: #facc15;
    color: #7c2d12;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 5px 14px rgba(250, 204, 21, 0.32);
}
.poster-promo-title {
    margin-top: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0;
}
.poster-promo-desc {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.45;
}
.poster-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 13px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.poster-promo-btn i { font-size: 11px; }
.poster-promo-art {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 112px;
    height: 102px;
    transform: translateY(-50%);
    z-index: 1;
}
.poster-promo-doc {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 14px 28px rgba(52, 34, 130, 0.24);
}
.poster-promo-doc-back {
    right: 4px;
    top: 7px;
    width: 64px;
    height: 78px;
    opacity: 0.54;
    transform: rotate(10deg);
}
.poster-promo-doc-front {
    right: 26px;
    top: 18px;
    width: 66px;
    height: 76px;
    color: #7c5df2;
    font-size: 24px;
    transform: rotate(-8deg);
}
.poster-promo-doc-front::before {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 13px;
    height: 5px;
    border-radius: 99px;
    background: rgba(124, 93, 242, 0.18);
}
.poster-promo-dot {
    position: absolute;
    right: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 0 7px rgba(250, 204, 21, 0.18);
}
.poster-embed-page {
    min-height: 0;
    background: #f6f8fb;
    overflow: hidden;
}
body.poster-route-body {
    padding-bottom: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
}
.poster-embed-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #f6f8fb;
    overflow: auto;
}
#main-content.poster-route-main {
    min-height: calc(100dvh - 57px) !important;
    height: auto;
    padding-bottom: 0 !important;
    overflow: visible;
}
#main-content.poster-route-main .poster-embed-page {
    height: auto !important;
    min-height: calc(100dvh - 57px);
}
@media (max-width: 420px) {
    .poster-promo-card { border-radius: 19px; }
    .poster-promo-inner {
        min-height: 112px;
        padding: 16px 108px 16px 16px;
        border-radius: 19px;
    }
    .poster-promo-title { font-size: 21px; }
    .poster-promo-desc { max-width: 190px; font-size: 12px; }
    .poster-promo-art {
        right: 6px;
        width: 96px;
        height: 92px;
    }
    .poster-promo-doc-back {
        right: 5px;
        width: 55px;
        height: 68px;
    }
    .poster-promo-doc-front {
        right: 24px;
        width: 57px;
        height: 66px;
    }
}

.wallet-user-card {
    display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px; padding: 16px 18px; margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06); border: 1px solid rgba(255, 255, 255, 0.6);
}
.wallet-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white; font-size: 18px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    margin-right: 14px; flex-shrink: 0;
}
.wallet-user-info { flex: 1; min-width: 0; }
.wallet-username { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.wallet-membership {
    display: inline-flex; align-items: center; justify-content: center;
    width: fit-content; min-height: 20px; padding: 3px 8px; margin-bottom: 5px;
    border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1;
}
.wallet-membership.is-normal { color: #2563eb; background: #dbeafe; }
.wallet-membership.is-super { color: #047857; background: #d1fae5; }
.wallet-membership.level-color-0 { color: #2563eb; background: #dbeafe; }
.wallet-membership.level-color-1 { color: #7c3aed; background: #ede9fe; }
.wallet-membership.level-color-2 { color: #be123c; background: #ffe4e6; }
.wallet-membership.level-color-3 { color: #0f766e; background: #ccfbf1; }
.wallet-membership.level-color-4 { color: #b45309; background: #fef3c7; }
.wallet-membership.level-color-5 { color: #0369a1; background: #e0f2fe; }
.wallet-membership.level-color-6 { color: #4338ca; background: #e0e7ff; }
.wallet-membership.level-color-7 { color: #047857; background: #d1fae5; }
.wallet-balance { font-size: 13px; color: #64748b; }
.wallet-balance span { font-weight: 600; color: #1e293b; }
.wallet-user-arrow { color: #94a3b8; font-size: 14px; margin-left: 8px; }
.wallet-summary-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.wallet-summary-card { min-width: 0; padding: 14px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.wallet-summary-label { display: block; color: #6b7280; font-size: 12px; line-height: 1.4; }
.wallet-summary-card strong { display: block; margin-top: 6px; color: #111827; font-size: 20px; line-height: 1.2; font-weight: 800; }
.wallet-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.wallet-action-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px; padding: 20px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); border: 1px solid rgba(255, 255, 255, 0.6);
    text-decoration: none; color: #1e293b; position: relative;
}
.wallet-action-card.wallet-record-summary { cursor: default; }
.wallet-action-card,
.wallet-action-card .wallet-action-label { text-decoration: none !important; }
.wallet-action-card:hover .wallet-action-label { text-decoration: none !important; }
.wallet-action-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 16px; margin-bottom: 8px;
}
.wallet-action-icon.green { background: linear-gradient(135deg, #10b981, #34d399); }
.wallet-action-icon.blue { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.wallet-action-label { font-size: 12px; color: #64748b; font-weight: 500; }
.wallet-action-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #94a3b8; }
.wallet-record-card { margin-bottom: 16px; }
.wallet-record-card .section-header { margin-bottom: 0; padding-bottom: 12px; }
.wallet-record-icon { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.section-arrow { margin-left: auto; font-size: 12px; color: #94a3b8; }
.wallet-record-list { min-height: 40px; }
.wallet-record-date-group {
    padding: 14px 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}
.wallet-record-date-group:first-child { padding-top: 4px; }
.wallet-record-item {
    display: flex; align-items: flex-start; padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06); gap: 12px;
}
.wallet-record-item:last-child { border-bottom: none; }
.wallet-record-icon.out { background: linear-gradient(135deg, #ef4444, #f87171); color: white; }
.wallet-record-item .wallet-record-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8); color: white; font-size: 14px;
    flex-shrink: 0;
}
.wallet-record-body { flex: 1; min-width: 0; }
.wallet-record-desc { font-size: 14px; color: #334155; line-height: 1.4; margin-bottom: 4px; }
.wallet-record-time { font-size: 12px; color: #94a3b8; }
.wallet-record-amount { font-size: 15px; font-weight: 600; flex-shrink: 0; }
.wallet-money-in { color: #10b981; }
.wallet-money-out { color: #ef4444; }
.wallet-load-more-wrap { text-align: center; padding: 16px 0; }
.auto-load-footer {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 20px 0; color: #64748b; font-size: 14px;
}
.auto-load-spinner { display: inline-flex; }
.auto-load-spinner i { font-size: 18px; color: #0ea5e9; }
.auto-load-sentinel { height: 20px; width: 100%; pointer-events: none; }
.auto-load-no-more { text-align: center; padding: 16px 0; font-size: 13px; color: #94a3b8; }

.wallet-load-more-btn {
    padding: 10px 24px; font-size: 14px; color: #64748b;
    background: #e2e8f0; border: none; border-radius: 12px;
    cursor: pointer; transition: background 0.2s;
}
.wallet-load-more-btn:hover:not(:disabled) { background: #cbd5e1; }
.wallet-load-more-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.wallet-no-more { text-align: center; padding: 12px 0; font-size: 12px; color: #94a3b8; }

.wallet-business-page .wallet-user-card,
.wallet-business-page .wallet-action-card,
.wallet-business-page .wallet-record-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.wallet-business-page .wallet-user-card {
    align-items: stretch;
    gap: 14px;
    padding: 18px;
}
.wallet-business-page .wallet-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    margin-right: 0;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 15px;
}
.wallet-business-page .wallet-user-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: center;
}
.wallet-business-page .wallet-username {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}
.wallet-business-page .wallet-membership {
    margin: 0;
    justify-self: end;
    border-radius: 999px;
}
.wallet-business-page .wallet-balance {
    grid-column: 1 / -1;
    color: #6b7280;
    font-size: 12px;
}
.wallet-business-page .wallet-balance span {
    display: inline-block;
    margin-left: 4px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}
.wallet-business-page .wallet-user-arrow {
    display: none;
}
.wallet-business-page .wallet-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.wallet-business-page .wallet-summary-card strong {
    color: #111827;
}
.wallet-business-page .wallet-actions-row {
    gap: 10px;
}
.wallet-business-page .wallet-action-card {
    min-height: 76px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px;
}
.wallet-business-page .wallet-action-icon {
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 9px;
    color: #1d4ed8;
    background: #eff6ff !important;
}
.wallet-business-page .wallet-action-label {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}
.wallet-business-page .wallet-action-arrow {
    right: 14px;
    color: #9ca3af;
}
.wallet-business-page .wallet-record-card {
    padding: 18px;
}
.wallet-business-page .wallet-record-card .section-header {
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f3;
}
.wallet-business-page .wallet-record-card .section-title {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}
.wallet-business-page .wallet-record-card .section-desc {
    color: #6b7280;
    font-size: 12px;
}
.wallet-business-page .wallet-record-card > .section-header .wallet-record-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #1d4ed8;
    box-shadow: none;
}
.wallet-business-page .wallet-record-item {
    padding: 13px 0;
    border-bottom: 1px solid #edf0f3;
}
.wallet-business-page .wallet-record-item .wallet-record-icon {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}
.wallet-business-page .wallet-record-icon.out {
    background: #fef2f2;
    color: #dc2626;
}
.wallet-business-page .wallet-record-desc {
    color: #111827;
    font-size: 13px;
}
@media (max-width: 480px) {
    .wallet-summary-row { gap: 8px; }
    .wallet-summary-card { padding: 12px; }
    .wallet-summary-card strong { font-size: 18px; }
}

.wallet-order-card { margin-bottom: 16px; }
.wallet-order-card .section-header { margin-bottom: 0; padding-bottom: 12px; }
.wallet-order-list { min-height: 40px; }
.wallet-order-item {
    display: flex; align-items: center; padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06); gap: 12px; flex-wrap: wrap;
}
.wallet-order-item:last-child { border-bottom: none; }
.wallet-order-body { flex: 1; min-width: 0; }
.wallet-order-desc { font-size: 14px; color: #334155; line-height: 1.4; margin-bottom: 4px; }
.wallet-order-time { font-size: 12px; color: #94a3b8; }
.wallet-order-amount { font-size: 15px; font-weight: 600; color: #334155; flex-shrink: 0; }
.wallet-order-status { font-size: 12px; padding: 2px 8px; border-radius: 6px; flex-shrink: 0; }
.wallet-order-status-success { background: #dcfce7; color: #166534; }
.wallet-order-status-pending { background: #fef3c7; color: #92400e; }
.wallet-record-item-order .wallet-record-order-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wallet-record-item-order .wallet-order-amount { font-size: 15px; font-weight: 600; color: #334155; }
.wallet-order-load-more-wrap { text-align: center; padding: 12px 0; }

/* Minimal template wallet and checkout */
.wallet-mobile-header { display:none; }
.wallet-quick-recharge { padding:20px; margin:0 0 18px; border:1px solid #e5e7eb; border-radius:8px; background:#fff; }
.wallet-quick-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px; }
.wallet-quick-heading strong, .wallet-record-toolbar > div:first-child strong { color:#111827; font-size:15px; font-weight:750; }
.wallet-quick-heading span { color:#858b95; font-size:12px; }
.wallet-quick-amounts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
.wallet-quick-amounts button { min-width:0; height:42px; border:1px solid #e1e4e8; border-radius:6px; background:#fff; color:#262a30; font:600 14px inherit; cursor:pointer; }
.wallet-quick-amounts button:hover, .wallet-quick-amounts button.is-selected { border-color:#3568f5; color:#2455db; background:#f4f7ff; }
.wallet-custom-amount { display:flex; align-items:center; height:46px; padding:0 12px; border:1px solid #e1e4e8; border-radius:6px; color:#4b5563; }
.wallet-custom-amount:focus-within { border-color:#3568f5; box-shadow:0 0 0 2px rgba(53,104,245,.1); }
.wallet-custom-amount span { font-size:16px; font-weight:700; }
.wallet-custom-amount input { width:100%; min-width:0; height:100%; padding:0 9px; border:0; outline:0; color:#17191d; background:transparent; font:600 16px inherit; }
.wallet-custom-amount em { color:#858b95; font-size:12px; font-style:normal; }
.wallet-recharge-submit { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:46px; margin-top:12px; border:0; border-radius:6px; background:#2761e7; color:#fff; font:650 14px inherit; cursor:pointer; }
.wallet-recharge-submit:hover { background:#1e50c8; }
.wallet-record-card { padding:0 20px; border:1px solid #e5e7eb; border-radius:8px; background:#fff; }
.wallet-record-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px; border-bottom:1px solid #edf0f3; }
.wallet-record-toolbar > div:first-child { display:flex; align-items:center; gap:10px; }
.wallet-record-toolbar > div:first-child span { color:#8b9098; font-size:12px; }
.wallet-record-filters { display:flex; align-items:center; gap:4px; }
.wallet-record-filters button { height:30px; padding:0 10px; border:0; border-radius:5px; background:transparent; color:#757b84; font:500 12px inherit; cursor:pointer; }
.wallet-record-filters button.is-active { background:#f1f4f8; color:#22262d; }
.wallet-cashier-page { position:relative; display:flex; flex-direction:column; width:min(100%,520px); min-height:min(720px,calc(100vh - 100px)); margin:24px auto; padding:0 24px 24px; border:1px solid #e5e7eb; border-radius:8px; background:#fff; }
.wallet-cashier-header { display:grid; grid-template-columns:36px 1fr 36px; align-items:center; min-height:58px; border-bottom:1px solid #edf0f3; }
.wallet-cashier-header strong { text-align:center; color:#191c21; font-size:15px; }
.wallet-cashier-header button { display:grid; place-items:center; width:34px; height:34px; border:0; border-radius:6px; background:transparent; color:#4b5563; cursor:pointer; }
.wallet-cashier-header button:hover { background:#f4f5f7; }
.wallet-cashier-amount { padding:34px 0 30px; border-bottom:1px solid #edf0f3; }
.wallet-cashier-amount span { display:block; color:#7d838c; font-size:13px; }
.wallet-cashier-amount strong { display:block; margin-top:9px; color:#17191d; font-size:34px; font-weight:750; font-variant-numeric:tabular-nums; }
.wallet-cashier-methods { padding-top:24px; }
.wallet-cashier-methods h2 { margin:0 0 12px; color:#343940; font-size:13px; font-weight:650; }
.wallet-cashier-method { display:grid; grid-template-columns:38px 1fr 22px; align-items:center; gap:12px; width:100%; min-height:72px; margin-bottom:10px; padding:12px; border:1px solid #e3e6ea; border-radius:7px; background:#fff; text-align:left; cursor:pointer; }
.wallet-cashier-method.is-selected { border-color:#3568f5; box-shadow:0 0 0 1px #3568f5; }
.wallet-cashier-method > i:first-child { font-size:25px; text-align:center; }
.wallet-pay-alipay { color:#1677ff; }
.wallet-pay-wechat { color:#09a85a; }
.wallet-cashier-method strong, .wallet-cashier-method small { display:block; }
.wallet-cashier-method strong { color:#22262d; font-size:14px; font-weight:650; }
.wallet-cashier-method small { margin-top:4px; color:#858b95; font-size:11px; }
.wallet-cashier-method > i:last-child { color:#a7adb6; font-size:17px; }
.wallet-cashier-method.is-selected > i:last-child { color:#3568f5; }
.wallet-cashier-footer { margin-top:auto; padding-top:26px; }
.wallet-cashier-footer p { margin:0 0 12px; color:#888e97; text-align:center; font-size:11px; }
.wallet-cashier-footer > button { width:100%; min-height:48px; border:0; border-radius:6px; background:#2761e7; color:#fff; font:650 14px inherit; cursor:pointer; }
.wallet-cashier-footer > button:disabled { opacity:.65; cursor:wait; }
.wallet-payment-overlay { position:fixed; inset:0; z-index:2500; display:grid; place-items:center; padding:18px; background:rgba(15,20,28,.48); }
.wallet-payment-dialog { position:relative; display:flex; flex-direction:column; align-items:center; width:min(100%,360px); padding:28px 22px 22px; border-radius:8px; background:#fff; text-align:center; }
.wallet-payment-dialog > i { font-size:34px; }
.wallet-payment-dialog h2 { margin:10px 0 4px; font-size:17px; }
.wallet-payment-dialog p { margin:0 0 16px; color:#777e88; font-size:12px; }
.wallet-payment-dialog img { width:190px; height:190px; object-fit:contain; }
.wallet-payment-dialog > strong { margin-top:12px; font-size:23px; }
.wallet-payment-dialog > small { max-width:100%; margin-top:8px; color:#9298a1; font-size:10px; overflow-wrap:anywhere; }
.wallet-payment-close { position:absolute; top:10px; right:10px; width:32px; height:32px; border:0; border-radius:6px; background:transparent; color:#6b7280; cursor:pointer; }
@media (max-width:768px) {
    .wallet-mobile-header { display:grid; grid-template-columns:40px 1fr 40px; align-items:center; min-height:48px; margin:-8px 0 14px; }
    .wallet-mobile-header strong { text-align:center; color:#17191d; font-size:16px; font-weight:700; }
    .wallet-mobile-header button { display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:6px; background:transparent; color:#343940; }
    .wallet-business-page .wallet-user-card { margin-bottom:12px; padding:15px; border-radius:8px; }
    .wallet-business-page .wallet-summary-row { margin-bottom:14px; }
    .wallet-quick-recharge { padding:16px; margin-bottom:14px; }
    .wallet-quick-amounts { gap:6px; }
    .wallet-quick-amounts button { height:40px; font-size:13px; }
    .wallet-record-card { padding:0 14px; }
    .wallet-record-toolbar { align-items:flex-start; flex-direction:column; padding:13px 0 10px; }
    .wallet-record-filters { width:100%; }
    .wallet-record-filters button { flex:1; }
    .wallet-cashier-page { width:100%; min-height:100vh; margin:0; padding:0 20px 24px; border:0; border-radius:0; }
    body:has(.wallet-cashier-page) #main-content { padding:0!important; background:#fff; }
    body:has(.wallet-cashier-page) .ios-header, body:has(.wallet-cashier-page) .ios-bottom-nav { display:none!important; }
}

.app-list-area { padding-top: 8px; }
.app-list-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.app-list-search {
    flex: 1 1 120px;
    min-width: 80px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
}
.app-list-class {
    flex: 0 0 auto;
    max-width: 140px;
    min-width: 90px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
}
.app-list-list { margin-bottom: 12px; }
.app-list-load-more-wrap { text-align: center; padding: 12px 0; }
.app-list-load-more-btn { padding: 8px 24px; font-size: 14px; color: #64748b; background: #f1f5f9; border: none; border-radius: 10px; cursor: pointer; }
.app-list-load-more-btn:hover:not(:disabled) { background: #e2e8f0; }
.app-list-load-more-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.app-list-empty { text-align: center; padding: 24px; color: #94a3b8; font-size: 14px; }
.app-list-icon { position: relative; }
.app-list-icon-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.app-list-icon .app-list-icon-text { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; color: white; }
.app-list-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px; margin-bottom: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.app-list-row:last-child { margin-bottom: 0; }
.app-list-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 22px; font-weight: 600;
    flex-shrink: 0;
}
.app-list-icon-text { font-family: inherit; }
.app-list-icon i { font-size: 24px; }
.app-list-info { flex: 1; min-width: 0; }
.app-list-name { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.app-list-package { font-size: 12px; color: #64748b; margin-bottom: 2px; word-break: break-all; }
.app-list-meta { font-size: 11px; color: #94a3b8; }
.app-install-wrap { flex-shrink: 0; text-align: center; }
.app-install-btn {
    display: block;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white; border: none; border-radius: 10px;
    padding: 8px 20px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.app-install-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4); }
.app-install-btn:active { transform: translateY(0); }
.app-install-hint { font-size: 11px; color: #94a3b8; margin-top: 4px; }

.device-page { padding-top: 8px; }
.device-stats {
    display: flex; gap: 20px; margin-bottom: 16px;
    padding: 16px; background: rgba(255, 255, 255, 0.72);
    border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.device-stat-item { display: flex; flex-direction: column; align-items: center; flex: 1; }
.device-stat-num { font-size: 22px; font-weight: 700; line-height: 1.2; }
.device-stat-item.blue .device-stat-num { color: #0ea5e9; }
.device-stat-item.red .device-stat-num { color: #ef4444; }
.device-stat-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.device-actions {
    display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 16px;
    min-width: 0;
}
.device-actions .device-btn {
    flex: 1 1 0; min-width: 0;
    padding: clamp(6px, 1.5vw, 10px) clamp(6px, 2vw, 14px);
    font-size: clamp(11px, 2.5vw, 13px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.device-actions .device-btn i { flex-shrink: 0; }
.device-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 14px; border-radius: 12px; border: none;
    font-size: 13px; font-weight: 500; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.device-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.device-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4); }
.device-btn-secondary {
    background: #e0f2fe; color: #0369a1;
}
.device-btn-secondary:hover { background: #bae6fd; }
.device-btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.device-btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
.device-btn-warning {
    background: linear-gradient(135deg, #ca8a04, #eab308);
    color: #fff; box-shadow: 0 4px 12px rgba(202, 138, 4, 0.35);
}
.device-btn-warning:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(202, 138, 4, 0.4); }
.device-btn-export {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.device-btn-export:hover { background: linear-gradient(135deg, #059669, #10b981); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
.device-btn-danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.28);
}
.device-btn-danger:hover { background: linear-gradient(135deg, #dc2626, #ef4444); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(239, 68, 68, 0.36); }
.device-list { min-height: 60px; }
.device-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px; padding: 16px; margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.device-card-head { margin-bottom: 10px; }
.device-card-id-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.device-card-model {
    font-size: 13px;
    color: #6366f1;
    margin-bottom: 6px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.device-card-model i { color: #818cf8; }
.device-card-model:hover { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }
.device-card-model:empty { display: none; }
.device-status-dot {
    flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%;
    animation: device-status-dot-ripple 1.5s ease-in-out infinite;
}
.device-status-dot--green { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
.device-status-dot--yellow { background: #eab308; box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.5); }
.device-status-dot--red { background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
.device-status-dot--gray { background: #94a3b8; box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.5); }
@keyframes device-status-dot-ripple {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
.device-status-dot--yellow { animation-name: device-status-dot-ripple-yellow; }
@keyframes device-status-dot-ripple-yellow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(234, 179, 8, 0); }
}
.device-status-dot--red { animation-name: device-status-dot-ripple-red; }
@keyframes device-status-dot-ripple-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
.device-status-dot--gray { animation-name: device-status-dot-ripple-gray; }
@keyframes device-status-dot-ripple-gray {
    0%, 100% { box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(148, 163, 184, 0); }
}
.device-card-id { font-size: 15px; font-weight: 700; color: #1e293b; word-break: break-all; flex: 1; min-width: 0; }
.device-click-copy { cursor: pointer; transition: color 0.2s; }
.device-click-copy:hover { color: #3b82f6; }
.device-card-copy-udid { flex-shrink: 0; border: none; background: none; cursor: pointer; color: #64748b; padding: 4px; font-size: 14px; }
.device-card-copy-udid:hover { color: #3b82f6; }
.device-card-unit-id-wrap { font-size: 12px; color: #334155; margin-top: 4px; }
.device-card-unit-id-wrap .device-card-unit { font-weight: 700; }
.device-card-unit-id-wrap .device-card-device-id { font-size: 11px; color: #94a3b8; font-weight: 400; }
.device-card-remark {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    padding: 6px 10px; margin-bottom: 8px;
    background: #f1f5f9; border-radius: 10px;
}
.device-card-remark-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.device-card-remark-label { font-size: 12px; color: #475569; }
.device-card-remark .device-card-action-btn {
    padding: 4px 8px; font-size: 11px; border-radius: 8px;
}
.device-card-remark .device-card-action-btn i { font-size: 11px; }
.device-warranty-none { color: #ef4444; }
.device-card-bind-udid {
    font-size: 12px; color: #64748b; margin-bottom: 8px;
}
.device-card-tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px;
}
.device-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500;
}
.device-tag-status.green { background: #d1fae5; color: #059669; }
.device-tag-status.green i { font-size: 6px; }
.device-tag-status.gray { background: #e2e8f0; color: #64748b; }
.device-tag-status.yellow { background: #fef9c3; color: #a16207; }
.device-tag-status.yellow i { font-size: 6px; }
.device-tag-status.red { background: #fee2e2; color: #dc2626; }
.device-tag-status.red i { font-size: 6px; }
.device-tag-cert-type.instant { background: #dcfce7; color: #166534; }
.device-tag-cert-type.reserve { background: #dbeafe; color: #1d4ed8; }
.device-tag-version { background: #dbeafe; color: #1d4ed8; }
.device-tag-source { background: #fef3c7; color: #b45309; }
.device-tag-package { background: #e0e7ff; color: #4338ca; }
.code-card-auto-import { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: #86efac; }
.device-card-delete {
    margin-left: auto; background: none; border: none; color: #94a3b8;
    padding: 4px 8px; cursor: pointer; font-size: 14px;
}
.device-card-delete:hover { color: #ef4444; }
.device-card-meta {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px;
    font-size: 12px; color: #64748b;
}
.device-meta-item { }
.device-card-warranty-bar-wrap {
    height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 10px;
}
.device-card-warranty-bar {
    height: 100%; border-radius: 3px; transition: background 0.2s;
}
.device-card-warranty-bar--green { background: #22c55e; }
.device-card-warranty-bar--yellow { background: #eab308; }
.device-card-warranty-bar--red { background: #ef4444; }
.device-card-desc {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-bottom: 12px; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.device-desc-text { font-size: 13px; color: #475569; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-desc-btn {
    flex-shrink: 0; background: none; border: none; color: #0ea5e9;
    font-size: 12px; cursor: pointer; padding: 4px 8px;
}
.device-desc-btn:hover { text-decoration: underline; }
.device-card-actions {
    display: flex; flex-wrap: nowrap; gap: 6px; padding-top: 10px;
    min-width: 0;
}
.device-card-actions .device-card-action-btn,
.device-card-actions .device-card-action {
    flex: 1 1 0; min-width: 0;
    padding: clamp(4px, 1vw, 8px) clamp(6px, 1.5vw, 12px);
    font-size: clamp(10px, 2.2vw, 12px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.device-card-action,
.device-card-action-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    font-size: 12px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.device-card-action-btn i,
.device-card-action i { flex-shrink: 0; }
.device-card-action-btn {
    background: #f8fafc; border: 1px solid #e2e8f0; color: #0ea5e9;
}
.device-card-action-btn:hover { background: #f1f5f9; border-color: #cbd5e1; color: #0284c7; }
.device-card-action-btn i { font-size: 13px; color: #0ea5e9; }
.device-card-action-btn:hover i { color: #0284c7; }
.device-card-action-btn.device-card-action-btn-danger {
    background: #fef2f2; border-color: #fecaca; color: #dc2626;
}
.device-card-action-btn.device-card-action-btn-danger:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.device-card-action-btn.device-card-action-btn-danger i { color: #dc2626; }
.device-card-action-btn.device-card-action-btn-danger:hover i { color: #b91c1c; }
.device-card-action {
    background: none; border: none; color: #64748b;
    padding: 6px 0;
}
.device-card-action:hover { color: #0ea5e9; }
.device-card-action-btn.device-auto-import-done {
    background: #22c55e; border: none; color: #fff;
    cursor: default; pointer-events: none;
}
.device-card-action-btn.device-auto-import-done i { color: #fff; font-size: 13px; }
.device-card-action-btn.device-auto-import-done:hover { background: #22c55e; color: #fff; }
.device-card-action-btn.device-auto-import-done:hover i { color: #fff; }
.device-list-pagination { font-size: 12px; color: #94a3b8; text-align: center; padding: 12px 0; margin: 0; }
.device-action-loading-overlay {
    position: fixed; left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35); z-index: 9998;
    display: flex; align-items: center; justify-content: center;
    pointer-events: auto;
}
.device-action-loading-overlay .device-action-loading-spinner {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    color: #fff; font-size: 14px;
}
.device-action-loading-overlay .device-action-loading-spinner i {
    font-size: 32px;
}
.device-search-overlay {
    position: fixed; left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.device-search-panel {
    background: #fff; border-radius: 16px; padding: 20px; max-width: 360px; width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.device-search-panel .search-form-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #1e293b; }
.device-search-panel .search-form-row { margin-bottom: 14px; }
.device-search-panel .search-form-row label { display: block; font-size: 13px; color: #64748b; margin-bottom: 6px; }
.device-search-panel .search-form-row input {
    width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px;
    font-size: 14px; background: #fff;
}
.device-search-panel .search-form-actions { display: flex; gap: 10px; margin-top: 20px; }
.device-search-panel .search-form-actions button { flex: 1; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; }
.device-search-panel .search-form-actions .btn-cancel { background: #f1f5f9; color: #64748b; }
.device-search-panel .search-form-actions .btn-confirm { background: #0ea5e9; color: #fff; }
.device-search-panel .search-form-actions .btn-confirm:hover { background: #0284c7; }
.device-confirm-body { font-size: 14px; color: #475569; line-height: 1.6; margin: 0 0 20px; }

.device-analyze-overlay .device-search-panel { max-width: 480px; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; }
.device-analyze-panel .search-form-title { display: flex; align-items: center; justify-content: space-between; }
.device-analyze-close { background: none; border: none; font-size: 24px; line-height: 1; color: #94a3b8; cursor: pointer; padding: 0 4px; }
.device-analyze-close:hover { color: #64748b; }
.device-analyze-accordion { overflow-y: auto; margin-top: 12px; }
.device-analyze-acc-item { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.device-analyze-acc-head { padding: 12px 14px; font-size: 14px; font-weight: 600; color: #334155; background: #f8fafc; cursor: pointer; user-select: none; display: flex; align-items: center; }
.device-analyze-acc-head::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: auto; font-size: 12px; color: #94a3b8; transition: transform 0.2s; }
.device-analyze-acc-item.open .device-analyze-acc-head::after { transform: rotate(180deg); }
.device-analyze-acc-body { display: none; padding: 12px 14px; background: #fff; font-size: 13px; }
.device-analyze-acc-item.open .device-analyze-acc-body { display: block; }
.device-analyze-table { width: 100%; border-collapse: collapse; }
.device-analyze-table td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; }
.device-analyze-table tr:last-child td { border-bottom: none; }
.device-analyze-table td:first-child { color: #64748b; width: 110px; }
.device-analyze-perm-name { text-align: left; }
.device-analyze-perm-value { text-align: right; }
.device-analyze-perm-value .device-analyze-perm-on { color: #16a34a; font-size: 1em; }
.device-analyze-perm-value .device-analyze-perm-off { color: #dc2626; font-size: 1em; }
.device-analyze-list { margin: 0; padding-left: 20px; max-height: 120px; overflow-y: auto; }
.device-analyze-list li { margin-bottom: 4px; word-break: break-all; }
.device-analyze-status-revoked { color: #dc2626; font-weight: 600; }
.device-analyze-status-ok { color: #16a34a; font-weight: 600; }
.device-analyze-status-expired { color: #ca8a04; font-weight: 600; }
.device-analyze-match-ok { color: #16a34a; font-weight: 600; }
.device-analyze-match-fail { color: #dc2626; font-weight: 600; }
.device-analyze-days-green { color: #16a34a; font-weight: 600; }
.device-analyze-days-yellow { color: #ca8a04; font-weight: 600; }
.device-analyze-days-red { color: #dc2626; font-weight: 600; }
.device-analyze-udid-match { color: #16a34a; font-weight: 600; }

.add-device-overlay {
    position: fixed; left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; overflow-y: auto;
}
.add-device-panel {
    background: #fff; border-radius: 16px; padding: 20px; max-width: 400px; width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15); margin: auto;
}
.add-device-panel .add-device-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 16px; color: #1e293b; display: flex; align-items: center; justify-content: space-between; }
.add-device-panel .add-device-close { background: none; border: none; color: #64748b; font-size: 20px; cursor: pointer; padding: 0 4px; line-height: 1; }
.add-device-packages {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.add-device-pkg-card {
    border: 2px solid var(--pkg-color, #e2e8f0); border-radius: 12px; padding: 12px; cursor: pointer; transition: all 0.2s;
    text-align: center;
    background: color-mix(in srgb, var(--pkg-color, #e2e8f0) 6%, white);
}
.add-device-pkg-card.selected { border-color: var(--pkg-color); background: color-mix(in srgb, var(--pkg-color) 14%, white); }
.add-device-packages .add-device-pkg-card { cursor: default; pointer-events: none; }
.add-device-pkg-card .pkg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.add-device-pkg-card .pkg-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.add-device-pkg-card .pkg-after { font-size: 11px; color: #64748b; }
.add-device-pkg-card .pkg-prices { font-size: 12px; color: #475569; }
.add-device-pkg-card .pkg-row { display: flex; justify-content: space-between; align-items: center; line-height: 1.8; }
.add-device-pkg-card .pkg-label { color: #64748b; }
.add-device-pkg-card .pkg-val { font-weight: 600; }
.add-device-pkg-card .pkg-val-unsupport { color: #94a3b8; font-size: 11px; font-weight: 500; }
.add-device-form-row { margin-bottom: 12px; }
.add-device-form-row label { display: block; font-size: 13px; color: #64748b; margin-bottom: 4px; }
.add-device-form-row input, .add-device-form-row textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; background: #fff;
}
.add-device-form-row textarea { min-height: 72px; resize: vertical; }
/* 自动导入证书勾选框样式（需高于 .add-device-form-row label 的 display:block，否则无法 flex 居中） */
.add-device-form-row label.add-device-auto-import-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #334155;
    cursor: pointer;
    max-width: 100%;
    padding: 4px 0;
    margin-bottom: 0;
    user-select: none;
}
.add-device-form-row label.add-device-auto-import-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
    accent-color: #2563eb;
    box-sizing: border-box;
    vertical-align: middle;
}
.add-device-form-row label.add-device-auto-import-label .add-device-auto-import-title {
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}
.add-device-form-row label.add-device-auto-import-label .auto-import-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
}
.add-device-form-row label.add-device-auto-import-label .auto-import-status.on {
    color: #059669;
    background: #d1fae5;
}
.add-device-form-row label.add-device-auto-import-label .auto-import-status.off {
    color: #94a3b8;
    background: #f1f5f9;
}
.add-device-form-row label.add-device-auto-import-label .auto-import-price-tip {
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

/* 秒出 / 预约按钮内余额数字标红 */
.add-device-actions .btn-instant .add-device-price-amount,
.add-device-actions .btn-reserve .add-device-price-amount {
    color: #fca5a5;
    font-weight: 700;
}

.add-device-actions { display: flex; gap: 10px; margin-top: 16px; }
.add-device-actions button { flex: 1; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; }
.add-device-actions .btn-cancel { background: #f1f5f9; color: #64748b; }
.add-device-actions .btn-instant { background: #10b981; color: #fff; }
.add-device-actions .btn-instant:hover { background: #059669; }
.add-device-actions .btn-reserve { background: #0ea5e9; color: #fff; }
.add-device-actions .btn-reserve:hover { background: #0284c7; }

.device-import-overlay .add-device-panel { max-width: 480px; }
.device-import-placeholder { color: #94a3b8; font-size: 13px; }
.device-import-progress-wrap { margin: 16px 0; }
.device-import-progress-bar-wrap {
    height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; margin-bottom: 8px;
}
.device-import-progress-bar {
    height: 100%; background: linear-gradient(90deg, #0ea5e9, #06b6d4); border-radius: 5px;
    transition: width 0.3s ease;
}
.device-import-progress-text {
    display: flex; justify-content: space-between; font-size: 12px; color: #64748b;
}
.device-import-result-wrap { margin-top: 16px; }
.device-import-failed-section {
    background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 12px; margin-bottom: 12px;
}
.device-import-failed-title { font-weight: 600; color: #b91c1c; margin-bottom: 8px; }
.device-import-failed-title i { margin-right: 6px; }
.device-import-failed-list { margin: 0; padding-left: 20px; font-size: 13px; color: #7f1d1d; max-height: 120px; overflow-y: auto; }
.device-import-failed-list li { margin-bottom: 4px; }
.device-import-failed-list .udid { font-family: monospace; }
.device-import-failed-list .err { color: #dc2626; margin-left: 6px; }
.device-import-stats-section {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 12px;
}
.device-import-stats-title { font-weight: 600; color: #15803d; margin-bottom: 8px; }
.device-import-stats-title i { margin-right: 6px; }
.device-import-stats-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.device-import-stat { display: flex; flex-direction: column; gap: 2px; }
.device-import-stat-label { font-size: 12px; color: #64748b; }
.device-import-stat-num { font-size: 16px; font-weight: 700; color: #1e293b; }
.device-import-stat-num.green { color: #16a34a; }
.device-import-stat-num.red { color: #dc2626; }
.device-import-actions { display: flex; gap: 10px; margin-top: 16px; align-items: stretch; }
.device-import-actions .btn-cancel { flex: 1; }
.device-import-actions .device-btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    line-height: 1.2;
    min-height: 44px;
}
.device-import-actions .device-btn-primary i { flex-shrink: 0; }

.device-upload-cert-overlay .add-device-panel { max-width: 440px; }
.device-upload-file-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}
.device-upload-file-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.device-upload-file-name.placeholder { color: #94a3b8; }
.device-upload-file-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.device-upload-file-btn:hover { background: #e2e8f0; }
.device-upload-file-btn i { font-size: 12px; }
.device-upload-cert-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}
.device-upload-cert-devices-wrap { margin-top: 8px; }
.device-upload-cert-devices-wrap > label { display: block; margin-bottom: 6px; font-weight: 500; }
.device-upload-cert-select-row {
    padding: 6px 4px; margin-bottom: 4px; border-bottom: 1px solid #e2e8f0;
}
.device-upload-cert-select-row .device-upload-cert-udid-text { font-weight: 600; }
#device-upload-cert-checkboxes {
    display: flex; flex-direction: column; gap: 0;
    max-height: 220px; overflow-y: auto; overflow-x: auto;
    padding: 6px 8px; background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0;
}
.add-device-form-row label.device-upload-cert-check-item {
    display: flex !important; align-items: center; justify-content: flex-start; gap: 8px;
    flex-wrap: nowrap; min-width: min-content;
    min-height: 32px; padding: 4px 2px;
    font-size: 13px; color: #334155; cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
}
.device-upload-cert-check-item:last-child { border-bottom: none; }
.device-upload-cert-check-item input[type="checkbox"],
.device-upload-cert-udid-cb {
    width: 18px !important; min-width: 18px !important; height: 18px !important;
    margin: 0 !important; padding: 0 !important; flex-shrink: 0; order: -1;
    border-radius: 4px; cursor: pointer;
}
.device-upload-cert-udid-text {
    flex: 0 0 auto; min-width: 20ch;
    font-family: ui-monospace, monospace;
    font-size: 12px; letter-spacing: 0.02em;
    white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis;
    word-break: keep-all; max-width: 40ch;
}
.device-upload-cert-result { padding: 8px 0; }
.device-upload-cert-result-summary { font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.device-upload-cert-result-list { max-height: 240px; overflow-y: auto; }
.device-upload-cert-result-item {
    padding: 8px 10px; margin-bottom: 6px;
    background: #f8fafc; border-radius: 8px; font-size: 13px;
}
.device-upload-cert-result-item .udid { font-family: monospace; margin-right: 8px; }
.device-upload-cert-result-item .success { color: #059669; }
.device-upload-cert-result-item .fail { color: #dc2626; }

.ios-bottom-nav {
    --nav-accent: #4f46e5;
    --nav-accent-soft: rgba(79, 70, 229, 0.08);
    --nav-inactive: #718299;
    --nav-bg: rgba(255, 255, 255, 0.96);
    --nav-border: rgba(79, 70, 229, 0.08);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    width: 100%;
    max-width: none;
    transform: none;
    background: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid var(--nav-border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: none;
    overflow: visible;
}
.ios-bottom-nav .nav-container {
    display: flex; align-items: stretch; justify-content: space-around;
    gap: 0; padding: 0 12px; height: 56px; min-height: 56px;
    max-width: 650px; margin: 0 auto;
}
@media (min-width: 769px) {
    .ios-bottom-nav .nav-container { padding: 0 18px; }
}
.ios-bottom-nav .nav-item,
.ios-bottom-nav .nav-item .nav-label,
.ios-bottom-nav .nav-item:hover,
.ios-bottom-nav .nav-item:focus,
.ios-bottom-nav .nav-item:hover .nav-label,
.ios-bottom-nav .nav-item:focus .nav-label {
    text-decoration: none !important;
}
.ios-bottom-nav .nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; min-width: 0;
    color: var(--nav-inactive);
    padding: 6px 0 7px; border-radius: 0;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.ios-bottom-nav .nav-item:hover { background: transparent; color: var(--nav-accent); }
.ios-bottom-nav .nav-item:active { transform: none; }
.ios-bottom-nav .nav-item.active { color: var(--nav-accent); }
.ios-bottom-nav .nav-icon {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; margin-bottom: 4px;
}
.ios-bottom-nav .nav-icon i { font-size: 22px; line-height: 1; }
.ios-bottom-nav .nav-svg-icon { display: block; width: 24px; height: 24px; color: currentColor; }
.ios-bottom-nav .nav-label { font-size: 14px; font-weight: 700; line-height: 1.15; letter-spacing: 0; }

.page-loading { text-align: center; padding: 40px 16px; color: #64748b; font-size: 14px; }
.page-error { text-align: center; padding: 40px 16px; color: #dc2626; font-size: 14px; }

.home-personal-section { margin-top: 20px; }
.home-personal-section .my-section { margin-bottom: 12px; }
.home-personal-link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.home-personal-link:hover { opacity: 0.9; text-decoration: none; }
.home-personal-link .section-header { display: flex; align-items: center; border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.home-personal-link .section-title,
.home-personal-link .section-desc { text-decoration: none; }

.device-search-inline { flex: 1; min-width: 120px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; margin-right: 8px; }
.apple-toolbar-row { padding: 10px 0; font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 8px; }
.apple-toolbar-label { display: flex; align-items: center; gap: 6px; }
.apple-toolbar-desc { font-size: 12px; color: #94a3b8; }
.apple-account-cards { display: flex; flex-direction: column; gap: 12px; }
.apple-account-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; }
.apple-account-row { display: flex; align-items: center; margin-bottom: 8px; font-size: 13px; }
.apple-account-row:last-child { margin-bottom: 0; }
.apple-account-label { color: #64748b; width: 90px; flex-shrink: 0; }
.apple-account-value { color: #334155; word-break: break-all; }
.apple-account-row-toggle { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }

.apple-add-overlay {
    position: fixed; left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; overflow-y: auto;
}
.apple-add-panel {
    background: #fff; max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto;
    border-radius: 20px; padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}
.apple-add-panel .search-form-title {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9;
    font-size: 18px; font-weight: 700; color: #0f172a;
}
.apple-add-panel .device-analyze-close {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; color: #64748b; font-size: 20px;
}
.apple-add-panel .device-analyze-close:hover { background: #f1f5f9; color: #334155; }
.apple-add-panel .search-form-row { margin-bottom: 16px; }
.apple-add-panel .search-form-row label {
    display: block; font-size: 13px; font-weight: 500; color: #334155;
    margin-bottom: 8px;
}
.apple-add-panel .search-form-row input,
.apple-add-panel .search-form-row select,
.apple-add-panel .search-form-row textarea {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px; font-size: 14px; color: #0f172a;
    border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.apple-add-panel .search-form-row input:focus,
.apple-add-panel .search-form-row select:focus,
.apple-add-panel .search-form-row textarea:focus {
    outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.apple-add-panel .search-form-row input::placeholder,
.apple-add-panel .search-form-row textarea::placeholder { color: #94a3b8; }
.apple-add-panel .search-form-row textarea {
    min-height: 100px; resize: vertical; font-family: ui-monospace, monospace;
    line-height: 1.5;
}
.apple-add-panel .search-form-row select {
    appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.apple-add-panel .search-form-actions {
    display: flex; gap: 12px; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.apple-add-panel .search-form-actions button {
    flex: 1; padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 600;
    border: none; cursor: pointer; transition: background 0.2s;
}
.apple-add-panel .search-form-actions .btn-cancel {
    background: #f1f5f9; color: #475569;
}
.apple-add-panel .search-form-actions .btn-cancel:hover { background: #e2e8f0; }
.apple-add-panel .search-form-actions .btn-confirm {
    background: #0ea5e9; color: #fff;
}
.apple-add-panel .search-form-actions .btn-confirm:hover { background: #0284c7; }

.my-section { margin-bottom: 20px; }
.my-section .section-card { margin-bottom: 0; }

/* 证书价格表 */
.cert-price-section { margin-bottom: 20px; }
.home-page-end {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin: -4px 0 18px;
    color: #b1bac7;
    font-size: 12px;
    font-weight: 700;
}
.home-page-end::before,
.home-page-end::after {
    content: "";
    width: 22px;
    height: 1px;
    margin: 0 8px;
    background: #dce3ec;
}
.cert-price-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cert-price-title { font-size: 15px; font-weight: 600; color: #1e293b; }
.cert-price-unit { font-size: 11px; color: #666; }
.cert-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.cert-price-card {
    border: 2px solid var(--pkg-color, #e2e8f0);
    border-radius: 10px;
    padding: 10px;
    background: color-mix(in srgb, var(--pkg-color, #e2e8f0) 6%, white);
}
.cert-price-name {
    font-size: 13px; font-weight: 600; color: #1e293b;
    margin-bottom: 6px;
}
.cert-price-rows { font-size: 11px; color: #475569; }
.cert-price-row {
    display: flex; justify-content: space-between; align-items: center; line-height: 1.6;
}
.cert-price-label { color: #64748b; }
.cert-price-val { font-weight: 600; color: var(--pkg-color); }
.cert-price-footer {
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cert-price-footer i { color: #d97706; }

.my-toggle-row, .my-link-row, .my-token-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.my-toggle-row:last-child, .my-link-row:last-child { border-bottom: none; }
.my-toggle-label, .my-link-label { font-size: 14px; color: #334155; }
.my-link-row a { color: #0ea5e9; text-decoration: none; font-size: 14px; }
.my-link-row a:hover { text-decoration: underline; }
.my-link-row .my-link-item { display: inline-flex; align-items: center; gap: 8px; }
.my-entrance-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px; padding: 0; margin-top: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06); border: 1px solid rgba(255, 255, 255, 0.6);
}
.my-entrance-row {
    display: flex; align-items: center; padding: 14px 16px;
    text-decoration: none !important; color: inherit; transition: background 0.2s;
}
.my-entrance-row:hover,
.my-entrance-row:active { text-decoration: none !important; }
.my-entrance-row:hover { background: rgba(0,0,0,0.04); }
.my-entrance-row:active { background: rgba(0,0,0,0.06); }
.my-entrance-row .my-entrance-title,
.my-entrance-row .my-entrance-desc { text-decoration: none !important; }
.my-entrance-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px; margin-right: 14px; flex-shrink: 0;
}
.my-entrance-icon.reseller { background: linear-gradient(135deg, #ec4899, #f472b6); box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35); }
.my-entrance-icon.codes { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35); }
.my-entrance-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.my-entrance-title { font-size: 15px; font-weight: 600; color: #1e293b; }
.my-entrance-desc { font-size: 12px; color: #64748b; }
.my-entrance-arrow { color: #94a3b8; font-size: 14px; margin-left: 8px; flex-shrink: 0; }
.my-entrance-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 0 16px; }
.codes-page .device-stats.codes-stats {
    border-radius: 18px; padding: 20px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.codes-page .device-stat-num { font-size: 24px; font-weight: 700; }
.codes-page .device-stat-label { font-size: 13px; margin-top: 6px; }
.codes-page .device-stat-item.codes-stat-used .device-stat-num { color: #ef4444; }
.codes-page .device-stat-item.codes-stat-unused .device-stat-num { color: #0ea5e9; }
.codes-page .device-actions.codes-actions {
    flex-wrap: nowrap; gap: 8px; padding: 14px 0;
    min-width: 0;
}
.codes-page .device-actions.codes-actions .device-btn {
    flex: 1 1 0; min-width: 0;
    padding: clamp(6px, 1.5vw, 10px) clamp(6px, 2vw, 14px);
    font-size: clamp(11px, 2.5vw, 13px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.codes-page .device-actions.codes-actions .device-btn i { flex-shrink: 0; }
.codes-sort-wrap { position: relative; display: inline-block; }
.device-btn-sort {
    display: inline-flex; align-items: center; gap: 8px;
    min-width: 140px; justify-content: space-between;
    background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
}
.device-btn-sort:hover { background: #e2e8f0; color: #334155; }
.device-btn-sort i { font-size: 12px; opacity: 0.8; }
.codes-sort-dropdown {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 4px;
    min-width: 160px; background: #fff; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12); border: 1px solid #e2e8f0;
    z-index: 100; max-height: 280px; overflow-y: auto;
}
.codes-sort-dropdown.open { display: block; }
.codes-sort-opt {
    padding: 12px 14px; font-size: 13px; color: #334155; cursor: pointer;
    border-bottom: 1px solid #f1f5f9; transition: background 0.15s;
}
.codes-sort-opt:last-child { border-bottom: none; }
.codes-sort-opt:hover { background: #f8fafc; }
.codes-search-panel { max-width: 360px !important; }
.codes-search-panel .search-form-title { margin-bottom: 14px; }
.codes-search-input {
    width: 100%; padding: 12px 14px; font-size: 15px;
    border-radius: 12px; border: 1px solid #e2e8f0;
    background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.codes-search-input:focus {
    outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.codes-page .codes-filter-row {
    display: flex; gap: 10px; padding: 14px 0; margin-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06); border-radius: 0;
}
.codes-tab {
    padding: 8px 16px; font-size: 13px; border-radius: 10px;
    cursor: pointer; font-weight: 500; color: #fff;
    transition: background 0.2s, box-shadow 0.2s;
}
.codes-tab[data-filter="all"] { background: #8baec4; }
.codes-tab[data-filter="all"].active { background: #0ea5e9; }
.codes-tab[data-filter="unused"] { background: #7aa88a; }
.codes-tab[data-filter="unused"].active { background: #16a34a; }
.codes-tab[data-filter="used"] { background: #c48989; }
.codes-tab[data-filter="used"].active { background: #dc2626; }
.codes-tab:hover:not(.active) { filter: brightness(0.95); }
.codes-tab.active { box-shadow: 0 0 0 2px rgba(255,255,255,0.8); }
.codes-page .device-list { margin-top: 4px; }
.codes-generate-panel .search-form-title { font-size: 18px; font-weight: 600; margin-bottom: 18px; color: #1e293b; }
.codes-generate-panel .search-form-row { margin-bottom: 16px; }
.codes-generate-panel .search-form-row label {
    display: block; font-size: 14px; font-weight: 500; color: #475569; margin-bottom: 8px;
}
.codes-generate-panel .form-control,
.codes-generate-panel .form-select {
    width: 100%; padding: 12px 14px; font-size: 14px;
    border-radius: 12px; border: 1px solid #e2e8f0;
    background: #f8fafc; color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.codes-generate-panel .form-control:focus,
.codes-generate-panel .form-select:focus {
    outline: none; border-color: #0ea5e9; background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.codes-generate-panel .form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.codes-generate-panel .search-form-actions { margin-top: 24px; gap: 12px; }
.codes-generate-panel .search-form-actions .btn-confirm i { margin-right: 6px; }
.codes-generate-panel .search-form-row-check { display: flex; align-items: center; justify-content: center; gap: 0; }
.codes-generate-panel .search-form-row-check label { margin-bottom: 0; }
.codes-generate-panel .codes-gen-auto-import-label {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    cursor: pointer;
    max-width: 100%;
}
.codes-generate-panel .search-form-row-check input[type="checkbox"].form-checkbox,
.codes-generate-panel .search-form-row-check .form-checkbox {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    min-width: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    accent-color: #0ea5e9;
}
.codes-generate-panel .codes-gen-auto-import-text,
.codes-generate-panel .codes-gen-auto-import-text #gen-auto-import-hint {
    font-size: 14px;
    font-weight: 500;
    color: #dc2626;
    white-space: nowrap;
    line-height: 1.4;
}
.codes-generate-panel .check-text { font-size: 14px; font-weight: 500; color: #1e293b; white-space: nowrap; }
.codes-generate-panel .check-hint { font-size: 12px; color: #64748b; }
.codes-manage-panel { width: min(360px, calc(100vw - 32px)); }
.codes-manage-action {
    width: 100%;
    min-height: 48px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.codes-manage-action i { width: 18px; text-align: center; color: #10b981; }
.codes-manage-action:hover { background: #f8fafc; border-color: #cbd5e1; }
.codes-manage-action.danger { color: #b91c1c; }
.codes-manage-action.danger i { color: #ef4444; }
.codes-manage-action.danger:hover { background: #fef2f2; border-color: #fecaca; }
.device-tag-auto-import { background: linear-gradient(135deg, #10b981, #34d399) !important; color: #fff !important; }
.device-tag-auto-import i { margin-right: 4px; }
.device-tag-no-auto-import { background: linear-gradient(135deg, #94a3b8, #cbd5e1) !important; color: #fff !important; }
.device-tag-no-auto-import i { margin-right: 4px; }
.codes-list { min-height: 60px; }
.codes-item { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.codes-item-code { font-family: monospace; font-size: 13px; word-break: break-all; }
.codes-item-meta, .codes-item-time { font-size: 12px; color: #64748b; margin-top: 4px; }
.reseller-page .section-card {
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    overflow: hidden;
}
.reseller-page .section-header { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.reseller-page .section-icon { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
.reseller-page .section-title { font-size: 17px; font-weight: 600; color: #1e293b; }
.reseller-page .section-desc { font-size: 13px; color: #64748b; margin-top: 2px; }
.reseller-url-wrap {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px;
    padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.reseller-url-label { font-size: 13px; color: #475569; font-weight: 500; width: 100%; margin-bottom: 6px; }
.reseller-url-value {
    font-size: 14px; word-break: break-all; color: #0f172a; flex: 1; min-width: 0; margin-right: 10px;
    font-family: ui-monospace, monospace; letter-spacing: 0.02em; line-height: 1.5;
}
.reseller-url-actions { display: flex; gap: 10px; flex-shrink: 0; }
.reseller-url-actions .reseller-url-btn {
    padding: 8px 16px; font-size: 13px; font-weight: 500; border-radius: 10px; border: none; cursor: pointer;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8); color: #fff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25); transition: transform 0.2s, box-shadow 0.2s;
}
.reseller-url-actions .reseller-url-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35); }
.reseller-form .search-form-row { margin-bottom: 16px; }
.reseller-form .search-form-row label {
    display: block; font-size: 13px; color: #475569; font-weight: 500; margin-bottom: 8px;
}
.reseller-form .form-control {
    width: 100%; padding: 12px 14px; font-size: 14px; border-radius: 12px;
    border: 1px solid #e2e8f0; background: #fff; color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.reseller-form .form-control:focus {
    outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.reseller-form .form-control::placeholder { color: #94a3b8; }
.reseller-prefix-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.reseller-prefix-input {
    flex: 1; min-width: 120px; max-width: 200px;
    font-family: ui-monospace, monospace; text-transform: lowercase;
}
.reseller-prefix-reset-btn {
    padding: 8px 14px; font-size: 13px; border-radius: 10px; border: 1px solid #e2e8f0;
    background: #f8fafc; color: #64748b; cursor: pointer; font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.reseller-prefix-reset-btn:hover { background: #f1f5f9; color: #475569; }
.reseller-field-hint {
    display: block; font-size: 12px; color: #94a3b8; margin-top: 6px; line-height: 1.4;
}
.reseller-form select.reseller-theme-select,
.reseller-form .reseller-theme-select {
    min-height: 44px;
    height: auto;
    padding: 12px 36px 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 12px;
    color: #1e293b;
    vertical-align: middle;
}
.reseller-form .search-form-row .reseller-field-hint {
    margin-top: 6px;
    text-align: left;
    max-width: 100%;
}
.reseller-form .reseller-save-btn {
    width: 100%; padding: 14px 20px; margin-top: 20px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8); color: #fff;
    border: none; border-radius: 14px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}
.reseller-form .reseller-save-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35); }
.reseller-form .reseller-save-btn:active { transform: translateY(0); }
.reseller-site-icon-upload { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.reseller-site-icon-preview-wrap {
    width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
    background: #f1f5f9; border: 1px solid #e2e8f0; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.reseller-site-icon-preview-img { width: 100%; height: 100%; object-fit: cover; }
.reseller-site-icon-placeholder { font-size: 12px; color: #94a3b8; }
.reseller-site-icon-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reseller-site-icon-actions .btn { font-size: 13px; }
.reseller-business-page .section-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.reseller-business-page .section-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #edf0f3;
}
.reseller-business-page .section-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #1d4ed8;
    box-shadow: none;
}
.reseller-business-page .section-title {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}
.reseller-business-page .section-desc {
    color: #6b7280;
    font-size: 12px;
}
.reseller-overview-card,
.reseller-config-card {
    padding: 18px;
}
.reseller-related-card {
    padding: 0;
    background: #fff;
}
.reseller-related-title {
    padding: 14px 18px;
    border-bottom: 1px solid #edf0f3;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
}
.reseller-related-actions {
    display: grid;
    gap: 12px;
    padding: 16px 18px 18px;
}
.reseller-related-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 7px;
    background: #48d088;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}
.reseller-related-btn:hover,
.reseller-related-btn:focus {
    background: #35c979;
    color: #fff;
    text-decoration: none;
}
.brand-notice-box {
    display: grid;
    gap: 10px;
}
.brand-notice-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    background: #f9fafb;
}
.brand-notice-item span {
    color: #cbd5e1;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.brand-notice-item p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}
.reseller-business-page .reseller-url-wrap {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}
.reseller-business-page .reseller-url-label {
    width: auto;
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}
.reseller-business-page .reseller-url-value {
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    line-height: 1.5;
}
.reseller-business-page .reseller-url-actions {
    gap: 8px;
}
.reseller-business-page .reseller-url-actions .reseller-url-btn,
.reseller-business-page .reseller-prefix-reset-btn,
.reseller-business-page .reseller-site-icon-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
}
.reseller-business-page .reseller-url-actions .reseller-url-btn.primary,
.reseller-business-page .reseller-save-btn {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}
.reseller-business-page .reseller-url-actions .reseller-url-btn:hover,
.reseller-business-page .reseller-prefix-reset-btn:hover,
.reseller-business-page .reseller-site-icon-actions .btn:hover {
    transform: none;
    border-color: #bfdbfe;
    background: #dbeafe;
    color: #1d4ed8;
    box-shadow: none;
}
.reseller-business-page .reseller-url-actions .reseller-url-btn.primary:hover,
.reseller-business-page .reseller-save-btn:hover {
    transform: none;
    background: #1e40af;
    box-shadow: none;
}
.reseller-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.reseller-form-section {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
.reseller-section-title {
    margin-bottom: 12px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}
.reseller-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.reseller-form-grid .reseller-icon-row {
    grid-column: 1 / -1;
}
.reseller-business-page .reseller-form .search-form-row {
    margin-bottom: 0;
}
.reseller-business-page .reseller-form .search-form-row label {
    margin-bottom: 7px;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}
.reseller-business-page .reseller-form .form-control,
.reseller-business-page .reseller-form .reseller-theme-select {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: none;
}
.reseller-business-page .reseller-form .form-control:focus,
.reseller-business-page .reseller-form .reseller-theme-select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}
.reseller-business-page .reseller-prefix-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.reseller-business-page .brand-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    align-items: center;
    gap: 0;
    min-height: 46px;
    padding: 0 7px 0 0;
    border: 1px solid #bdbdbd;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.reseller-business-page .brand-upload-row .form-control {
    min-height: 44px;
    border: 0;
    box-shadow: none;
    background: transparent;
    font-size: 14px;
}
.reseller-business-page .brand-upload-row .form-control:focus {
    border: 0;
    box-shadow: none;
}
.reseller-business-page .brand-upload-row .reseller-prefix-reset-btn {
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    background: #43bd55;
    color: #fff;
    font-size: 14px;
}
.reseller-business-page .brand-upload-row .reseller-prefix-reset-btn:hover {
    background: #35ad47;
    color: #fff;
}
.reseller-business-page .reseller-prefix-input {
    max-width: none;
}
.reseller-business-page .reseller-field-hint {
    margin-top: 6px;
    color: #9ca3af;
    font-size: 11px;
}
.reseller-business-page .reseller-site-icon-upload {
    align-items: center;
    gap: 12px;
}
.reseller-business-page .reseller-site-icon-preview-wrap {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border-color: #e5e7eb;
    background: #f9fafb;
}
.reseller-business-page .reseller-site-icon-placeholder {
    color: #9ca3af;
    font-size: 11px;
}
.reseller-save-bar {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}
.reseller-business-page .reseller-save-btn {
    width: auto;
    min-width: 150px;
    min-height: 40px;
    margin-top: 0;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none;
}
.reseller-activate-page {
    max-width: 960px;
    margin: 0 auto;
}
.reseller-activate-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 18px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.reseller-activate-main {
    padding: 8px 4px;
}
.reseller-activate-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}
.reseller-activate-main h2 {
    margin: 16px 0 10px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}
.reseller-activate-main p {
    max-width: 520px;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.8;
}
.reseller-activate-actions {
    margin-top: 22px;
}
.reseller-activate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #1d4ed8;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.reseller-activate-btn:hover {
    background: #1e40af;
}
.reseller-activate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.reseller-activate-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #edf0f3;
    border-radius: 12px;
    background: #f9fafb;
}
.reseller-benefit {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
.reseller-benefit i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
}
.reseller-benefit strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 13px;
}
.reseller-benefit span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
}
@media (max-width: 640px) {
    .reseller-business-page .reseller-url-wrap,
    .reseller-form-grid,
    .reseller-business-page .reseller-prefix-row {
        grid-template-columns: 1fr;
    }
    .reseller-business-page .reseller-url-actions,
    .reseller-save-bar {
        width: 100%;
    }
    .reseller-business-page .reseller-url-actions .reseller-url-btn,
    .reseller-business-page .reseller-save-btn {
        flex: 1;
        width: 100%;
    }
    .reseller-business-page .brand-upload-row {
        grid-template-columns: minmax(0, 1fr) 76px;
        min-height: 44px;
        padding-right: 6px;
    }
    .reseller-business-page .brand-upload-row .form-control {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 13px;
    }
    .reseller-business-page .brand-upload-row .reseller-prefix-reset-btn {
        width: auto;
        min-height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }
    .reseller-activate-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .reseller-activate-main h2 {
        font-size: 22px;
    }
    .reseller-activate-btn {
        width: 100%;
    }
}
.api-connect-card {
    padding: 18px 18px 16px;
    overflow: hidden;
}
.api-connect-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.api-connect-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.api-connect-icon {
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.24);
}
.api-connect-note {
    flex-shrink: 0;
    max-width: 180px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
}
.api-connect-grid {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}
.api-connect-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
}
.api-connect-row:last-child { border-bottom: none; }
.api-connect-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.api-connect-label i {
    width: 16px;
    color: #0ea5e9;
    text-align: center;
}
.api-connect-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.api-connect-token-row .api-connect-value {
    grid-column: 2 / 4;
}
.api-token-text,
.api-connect-url {
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
}
.api-token-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.api-connect-url {
    word-break: break-all;
}
.my-token-value { font-size: 13px; color: #64748b; font-family: monospace; word-break: break-all; flex: 1; min-width: 0; margin-right: 8px; }
.my-token-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.my-token-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #e0f2fe;
    color: #0369a1;
}
.my-token-btn:hover { background: #bae6fd; }
.my-token-btn.primary { background: #0ea5e9; color: #fff; }
.api-connect-card .my-token-value { margin-right: 0; }
.api-connect-card .api-token-text,
.api-connect-card .api-connect-url {
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
}
.api-connect-card .my-token-actions { gap: 6px; }
.api-connect-card .my-token-btn {
    height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    white-space: nowrap;
}

/* Business account style */
.my-page .section-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.my-page .section-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f3;
}
.my-page .section-icon,
.my-page .profile-card .profile-icon,
.my-page .official-link-icon,
.my-page .api-connect-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #1d4ed8;
    box-shadow: none;
}
.my-page .section-title {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}
.my-page .section-desc {
    color: #6b7280;
    font-size: 12px;
}
.compact-profile-card {
    background: #fff;
    padding: 18px;
}
.profile-overview {
    border-color: #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    box-shadow: inset 3px 0 0 #1d4ed8;
}
.profile-name {
    color: #111827;
    font-size: 17px;
    font-weight: 700;
}
.profile-balance {
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #fff;
}
.profile-balance strong {
    color: #1d4ed8;
    font-size: 17px;
}
.compact-profile-card .profile-info-row {
    border-color: #e5e7eb;
    border-radius: 9px;
    background: #fff;
}
.compact-profile-card .profile-info-row:last-child {
    border-color: #e5e7eb;
}
.compact-profile-card .profile-label {
    color: #6b7280;
}
.compact-profile-card .profile-value {
    color: #111827;
    font-weight: 600;
}
.profile-membership-badge {
    min-height: 21px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
}
.profile-membership-badge.is-normal,
.profile-membership-badge.level-color-0,
.profile-membership-badge.level-color-5 {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.profile-membership-badge.is-super,
.profile-membership-badge.level-color-3,
.profile-membership-badge.level-color-7 {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.profile-membership-badge.is-danger,
.profile-membership-badge.level-color-2 {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}
.profile-membership-badge.level-color-1,
.profile-membership-badge.level-color-6 {
    color: #4338ca;
    background: #eef2ff;
    border-color: #c7d2fe;
}
.profile-membership-badge.level-color-4 {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}
.profile-actions-bottom {
    border-top-color: #edf0f3;
}
.compact-profile-card .profile-change-pwd-btn,
.my-token-btn.primary {
    background: #1d4ed8;
    color: #fff;
    border: 1px solid #1d4ed8;
}
.compact-profile-card .profile-change-pwd-btn:hover,
.my-token-btn.primary:hover {
    background: #1e40af;
    opacity: 1;
}
.compact-profile-card .profile-logout-btn {
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.compact-profile-card .profile-logout-btn:hover {
    background: #fef2f2;
}
.official-link-card {
    background: #fff;
    border-color: #e5e7eb;
    padding: 16px 18px;
}
.official-link-url {
    border-color: #e5e7eb;
    border-radius: 9px;
    background: #f9fafb;
    color: #374151;
}
.api-connect-card {
    padding: 18px;
}
.api-connect-note {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
}
.api-connect-grid {
    border-color: #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
.api-connect-row {
    min-height: 46px;
    border-bottom-color: #edf0f3;
    background: #fff;
}
.api-connect-label {
    color: #4b5563;
}
.api-connect-label i {
    color: #1d4ed8;
}
.api-connect-card .api-token-text,
.api-connect-card .api-connect-url {
    color: #111827;
}
.my-token-btn {
    height: 30px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #eff6ff;
    color: #1d4ed8;
}
.my-token-btn:hover {
    background: #dbeafe;
}
.security-card,
.apilog-card {
    padding: 18px;
}
.security-card .section-header,
.apilog-card .section-header {
    align-items: flex-start;
}
.security-card .section-icon,
.apilog-card .section-icon {
    margin-top: 1px;
}
.security-card .my-login-mode-wrap {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}
.security-card .my-login-mode-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}
.security-card .my-login-mode-options label {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}
.security-card .my-login-mode-options input {
    accent-color: #1d4ed8;
}
.security-subhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0 10px;
}
.security-subhead span {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}
.security-subhead small {
    color: #9ca3af;
    font-size: 11px;
}
.security-card .my-session-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.security-card .my-session-toolbar .toolbar-btn,
.security-card .my-session-kick {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}
.security-card .my-session-toolbar .toolbar-btn:hover,
.security-card .my-session-kick:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}
.security-card .my-session-toolbar .toolbar-btn.danger,
.security-card .my-session-kick {
    border-color: #fecaca;
    background: #fff;
    color: #b91c1c;
}
.security-card .my-session-toolbar .toolbar-btn.danger:hover,
.security-card .my-session-kick:hover {
    background: #fef2f2;
    color: #991b1b;
}
.security-card .my-session-list,
.apilog-card .my-apilog-list {
    min-height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.security-card .my-session-item,
.apilog-card .my-apilog-item {
    padding: 11px 12px;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
}
.security-card .my-session-item:hover,
.apilog-card .my-apilog-item:hover {
    background: #f9fafb;
}
.security-card .my-session-info,
.apilog-card .my-apilog-info {
    color: #374151;
    font-size: 12px;
    line-height: 1.6;
}
.security-card .my-session-info .ua,
.apilog-card .my-apilog-info .path {
    color: #6b7280;
    font-size: 11px;
}
.apilog-card .my-apilog-time {
    display: inline-flex;
    margin-bottom: 3px;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
}
.apilog-card .my-apilog-expand-btn {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}
.apilog-card .my-apilog-expand-btn:hover {
    background: #eff6ff;
}
@media (max-width: 520px) {
    .profile-overview,
    .official-link-main {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .compact-profile-card .profile-info-list {
        grid-template-columns: 1fr;
    }
    .compact-profile-card .profile-actions,
    .official-link-actions {
        width: 100%;
    }
    .profile-balance {
        text-align: left;
    }
    .compact-profile-card .profile-actions button,
    .official-link-actions button {
        flex: 1;
    }
    .security-card .my-login-mode-wrap,
    .security-card .my-session-toolbar {
        grid-template-columns: 1fr;
    }
    .security-subhead {
        display: block;
    }
    .security-subhead small {
        display: block;
        margin-top: 3px;
    }
    .api-connect-head {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 12px;
    }
    .api-connect-note {
        max-width: none;
        text-align: left;
    }
    .api-connect-row {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 10px 11px;
    }
    .api-connect-label {
        grid-column: 1 / -1;
    }
    .api-connect-token-row .api-connect-value {
        grid-column: 1 / -1;
    }
    .api-token-text {
        white-space: normal;
        word-break: break-all;
    }
}
.my-login-mode-wrap { padding: 12px 0; }
.my-login-mode-options { display: flex; gap: 16px; margin-top: 8px; }
.my-login-mode-options label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; cursor: pointer; }
.my-session-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.my-session-toolbar .toolbar-btn { padding: 8px 12px; font-size: 12px; border-radius: 8px; border: none; cursor: pointer; background: #f1f5f9; color: #475569; }
.my-session-toolbar .toolbar-btn:hover { background: #e2e8f0; }
.my-session-toolbar .toolbar-btn.danger { background: #fef2f2; color: #dc2626; }
.my-session-toolbar .toolbar-btn.danger:hover { background: #fee2e2; }
.my-session-list, .my-apilog-list { min-height: 40px; }
.my-session-item, .my-apilog-item {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
}
.my-session-item:last-child, .my-apilog-item:last-child { border-bottom: none; }
.my-session-info, .my-apilog-info { font-size: 13px; color: #475569; flex: 1; min-width: 0; }
.my-session-info .ua, .my-apilog-info .path { font-size: 11px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-session-info .ua { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.my-session-kick { padding: 4px 10px; font-size: 12px; border-radius: 6px; border: none; cursor: pointer; background: #fef2f2; color: #dc2626; }
.my-session-kick:hover { background: #fee2e2; }
.my-apilog-time { font-size: 11px; color: #94a3b8; }
.my-modal-overlay { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.my-modal-panel { background: #fff; border-radius: 16px; padding: 20px; max-width: 360px; width: 100%; max-height: 80vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.my-modal-panel .modal-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #1e293b; }
.my-modal-panel .modal-body { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 16px; white-space: pre-wrap; }
.my-modal-panel .modal-actions { display: flex; gap: 10px; }
.my-modal-panel .modal-actions button { flex: 1; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; }
.my-modal-panel .modal-actions .btn-cancel { background: #f1f5f9; color: #64748b; }
.my-modal-panel .modal-actions .btn-confirm { background: #0ea5e9; color: #fff; }

.my-toast-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    pointer-events: none;
}
.my-toast-box {
    background: rgba(55, 65, 81, 0.95);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    max-width: 80%;
    word-break: break-all;
    white-space: pre-wrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease;
}
.my-toast-overlay.my-toast-fade-out .my-toast-box {
    opacity: 0;
}
html[data-main-template="minimal"] .my-toast-box {
    display:flex;
    align-items:center;
    gap:10px;
    min-width:150px;
    max-width:min(86vw,420px);
    padding:12px 17px;
    border:1px solid #e7ebf2;
    border-radius:12px;
    background:#fff;
    color:#1f2937;
    font-size:14px;
    font-weight:600;
    box-shadow:0 12px 30px rgba(15,23,42,.16);
}
html[data-main-template="minimal"] .minimal-toast-icon { width:21px; height:21px; flex:0 0 21px; color:#22c55e; }
html[data-main-template="minimal"] .minimal-toast-message { min-width:0; overflow-wrap:anywhere; }
/* The live station entry may omit data-main-template; keep the restored white toast on all station pages. */
.my-toast-box { display:flex; align-items:center; gap:10px; min-width:150px; max-width:min(86vw,420px); padding:12px 17px; border:1px solid #e7ebf2; border-radius:12px; background:#fff; color:#1f2937; font-size:14px; font-weight:600; box-shadow:0 12px 30px rgba(15,23,42,.16); }
.minimal-toast-icon { width:21px; height:21px; flex:0 0 21px; color:#22c55e; }
.minimal-toast-message { min-width:0; overflow-wrap:anywhere; }

/* Keep the restored notification surface available even when an older cached
   entry page has not loaded minimal-toast.css yet. */
body.minimal-template .my-toast-overlay { inset:0; align-items:flex-start; justify-content:center; padding:24px; pointer-events:none; background:transparent; }
body.minimal-template .my-toast-box { display:flex; align-items:center; gap:12px; box-sizing:border-box; width:356px; max-width:100%; min-height:64px; padding:18px 20px; border:1px solid #e5e5e5; border-radius:9px; background:#fff; color:#111; font-size:14px; font-weight:500; line-height:1.5; text-align:left; white-space:normal; word-break:normal; overflow-wrap:anywhere; box-shadow:0 6px 22px rgba(0,0,0,.09); animation:minimal-toast-enter .24s cubic-bezier(.2,.8,.2,1); transition:opacity .2s ease,transform .2s ease; }
body.minimal-template .minimal-toast-icon { width:20px; height:20px; flex:0 0 20px; color:#090909; }
body.minimal-template .minimal-toast-message { min-width:0; white-space:pre-wrap; }
body.minimal-template .my-toast-overlay.my-toast-fade-out .my-toast-box { opacity:0; transform:translateY(-6px); }
@keyframes minimal-toast-enter { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.install-modal-panel { max-width: 400px; }

/* 公告弹窗样式 - 响应式适配 */
.announcement-panel {
    position:relative;
    display:flex;
    flex-direction:column;
    width:min(100%,700px);
    max-height:calc(100dvh - 48px);
    margin:0;
    overflow:hidden;
    border:1px solid #e5e7eb;
    border-radius:8px;
    background:#fff;
    color:#111827;
    box-shadow:0 18px 50px rgba(15,23,42,.2);
    opacity:0;
    transform:translateY(8px) scale(.99);
    transition:opacity .22s ease,transform .22s cubic-bezier(.2,.8,.2,1);
}
.announcement-overlay { z-index:15000; padding:24px; background:rgba(0,0,0,.5); opacity:0; visibility:hidden; transition:opacity .22s ease,visibility 0s .22s; }
.announcement-overlay.is-open { opacity:1; visibility:visible; transition:opacity .22s ease,visibility 0s; }
.announcement-overlay.is-open .announcement-panel { opacity:1; transform:translateY(0) scale(1); }
.announcement-header { position:relative; flex:none; padding:24px 52px 0 24px; }
.announcement-heading { display:flex; align-items:center; gap:9px; }
.announcement-heading svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.announcement-heading h2 { margin:0; color:#111111; font-size:18px; font-weight:600; line-height:1.4; }
.announcement-header > p { margin:16px 0 0; color:#6b7280; font-size:14px; line-height:1.4; }
.announcement-close { position:absolute; top:10px; right:10px; display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:6px; background:transparent; color:#737373; cursor:pointer; }
.announcement-close:hover { background:#f3f4f6; color:#111827; }
.announcement-close svg { width:16px; height:16px; stroke:currentColor; stroke-width:1.6; fill:none; }
.announcement-close:focus-visible, .announcement-close-bottom:focus-visible, .announcement-snooze:focus-visible, .announcement-body:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.announcement-panel:focus { outline:none; }
.announcement-body { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; padding:28px 24px 0; color:#4b5563; font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.announcement-body img, .announcement-body video { max-width:100%; height:auto; }
.announcement-footer { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex:none; padding:24px; background:#fff; }
.announcement-snooze, .announcement-close-bottom { min-height:36px; padding:0 16px; border:1px solid #e5e7eb; border-radius:6px; background:#fff; color:#111; font:inherit; font-size:14px; font-weight:500; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.04); transition:background .15s,border-color .15s; }
.announcement-snooze:hover { background:#f5f5f5; }
.announcement-close-bottom { border-color:#000; background:#000; color:#fff; }
.announcement-close-bottom:hover { border-color:#27272a; background:#27272a; }
@media (max-width: 640px) {
    .announcement-overlay { align-items:center; padding:16px; }
    .announcement-panel { width:100%; max-height:calc(100dvh - 32px); border-radius:8px; }
    .announcement-header { padding:24px 46px 0 24px; }
    .announcement-body { padding:24px 24px 0; }
    .announcement-footer { flex-direction:column-reverse; align-items:stretch; padding:20px 24px max(24px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) {
    .announcement-overlay,.announcement-overlay.is-open,.announcement-panel { transition:none; }
}
.install-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.install-modal-header .modal-title { margin-bottom: 0; }
.install-modal-close { background: none; border: none; padding: 8px; color: #94a3b8; cursor: pointer; font-size: 18px; }
.install-modal-close:hover { color: #64748b; }
.install-modal-app { display: flex; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.install-modal-app-icon-wrap { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #0ea5e9, #38bdf8); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.install-modal-app-icon { width: 100%; height: 100%; object-fit: cover; }
.install-modal-app-initial { font-size: 24px; font-weight: 700; color: #fff; }
.install-modal-app-info { min-width: 0; }
.install-modal-app-name { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.install-modal-app-bid { font-size: 12px; color: #64748b; word-break: break-all; }
.install-modal-form { margin-bottom: 20px; }
.install-modal-label { display: block; font-size: 13px; font-weight: 500; color: #475569; margin-bottom: 6px; }
.install-modal-udid-wrap { position: relative; margin-bottom: 14px; }
.install-modal-udid-input { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; box-sizing: border-box; }
.install-modal-udid-input:focus { outline: none; border-color: #0ea5e9; }
.install-modal-udid-dropdown { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 200px; overflow-y: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 10; display: none; }
.install-modal-udid-option { padding: 10px 12px; font-size: 13px; color: #334155; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.install-modal-udid-option:last-child { border-bottom: none; }
.install-modal-udid-option:hover { background: #f8fafc; }
.install-modal-udid-empty { padding: 12px; font-size: 13px; color: #94a3b8; text-align: center; }
.install-modal-input { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; box-sizing: border-box; margin-bottom: 14px; }
.install-modal-input:focus { outline: none; border-color: #0ea5e9; }
.install-modal-submit { width: 100%; padding: 14px; background: #0ea5e9; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }
.install-modal-submit:hover { background: #0284c7; }
.install-modal-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.install-modal-status { margin-bottom: 12px; padding: 10px 12px; background: #f8fafc; border-radius: 10px; font-size: 13px; color: #475569; }
.install-modal-status-err { color: #dc2626; }
.install-progress-box { display: flex; flex-direction: column; gap: 8px; }
.install-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #334155; }
.install-progress-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install-progress-head strong { color: #0ea5e9; font-weight: 700; flex-shrink: 0; }
.install-progress-track { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.install-progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #0ea5e9); transition: width .45s ease; }
.install-progress-detail { font-size: 12px; color: #64748b; line-height: 1.4; }

.recharge-modal-form .recharge-amount { margin-bottom: 10px; }
.recharge-quick-amounts {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-bottom: 16px;
}
.recharge-quick-btn {
    padding: 10px 0; text-align: center; cursor: pointer;
    background: #f1f5f9; border-radius: 8px; font-weight: 600; color: #3b82f6;
    transition: all 0.2s;
}
.recharge-quick-btn:hover { background: #3b82f6; color: #fff; }
.recharge-quick-btn.selected { background: #3b82f6; color: #fff; }
.recharge-pay-options { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.recharge-pay-option {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; cursor: pointer;
    background: #fff; border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.recharge-pay-option:last-child { border-bottom: none; }
.recharge-pay-option:hover { background: #f8fafc; }
.recharge-pay-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.recharge-pay-icon-alipay { background: #1677ff; }
.recharge-pay-icon-wx { background: #07c160; }
.recharge-pay-name { flex: 1; font-size: 15px; color: #1e293b; font-weight: 500; }
.recharge-pay-radio {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 12px; color: #fff;
}
.recharge-pay-option.selected .recharge-pay-radio {
    background: #1677ff; border-color: #1677ff;
}

.sign-success-panel { max-width: 420px; }
.sign-success-list { max-height: 60vh; overflow-y: auto; }
.sign-success-item { padding: 14px 0; border-bottom: 1px solid #f1f5f9; }
.sign-success-item:last-child { border-bottom: none; }
.sign-success-item-title { font-size: 15px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.sign-success-item-row { font-size: 12px; color: #64748b; margin-bottom: 4px; word-break: break-all; }
.sign-success-item-actions { display: flex; gap: 10px; margin-top: 12px; }
.sign-success-btn { flex: 1; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; border: none; cursor: pointer; }
.sign-success-btn-install { background: #0ea5e9; color: #fff; }
.sign-success-btn-install:hover { background: #0284c7; color: #fff; }
.sign-success-btn-share { background: #f1f5f9; color: #475569; }
.sign-success-btn-share:hover { background: #e2e8f0; }
.my-load-more-wrap { text-align: center; padding: 12px 0; }
.my-load-more-btn { padding: 8px 20px; font-size: 13px; color: #64748b; background: #e2e8f0; border: none; border-radius: 10px; cursor: pointer; }
.my-load-more-btn:hover:not(:disabled) { background: #cbd5e1; }
.my-load-more-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.switch-toggle { position: relative; width: 44px; height: 24px; background: #cbd5e1; border-radius: 12px; cursor: pointer; transition: background 0.2s; }
.switch-toggle.on { background: #0ea5e9; }
.switch-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); transition: transform 0.2s; }
.switch-toggle.on::after { transform: translateX(20px); }

/* 首页卡片滚动动画特效 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.stats-section.scroll-animate.animate-in { transition-delay: 0ms; }
.stat-card.scroll-animate:nth-child(1).animate-in { transition-delay: 0ms; }
.stat-card.scroll-animate:nth-child(2).animate-in { transition-delay: 80ms; }
.stat-card.scroll-animate:nth-child(3).animate-in { transition-delay: 160ms; }
.stat-card.scroll-animate:nth-child(4).animate-in { transition-delay: 240ms; }
.quick-actions.scroll-animate.animate-in { transition-delay: 300ms; }
.section-card.scroll-animate:nth-child(1).animate-in { transition-delay: 380ms; }
.section-card.scroll-animate:nth-child(2).animate-in { transition-delay: 440ms; }
.section-card.scroll-animate:nth-child(3).animate-in { transition-delay: 500ms; }
.section-card.scroll-animate:nth-child(4).animate-in { transition-delay: 560ms; }
.section-card.scroll-animate:nth-child(5).animate-in { transition-delay: 620ms; }
.section-card.scroll-animate:nth-child(6).animate-in { transition-delay: 680ms; }
.section-card.scroll-animate:nth-child(7).animate-in { transition-delay: 740ms; }
.section-card.scroll-animate:nth-child(8).animate-in { transition-delay: 800ms; }
.section-card.scroll-animate:nth-child(9).animate-in { transition-delay: 860ms; }
.section-card.scroll-animate:nth-child(10).animate-in { transition-delay: 920ms; }

/* 卡片点击波纹特效 */
.section-card, .stat-card, .action-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.card-click-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.3);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}
@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 卡片点击缩放反馈 */
.stat-card:active, .action-item:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease;
}

/* 卡片入场动画 */
.stats-section .stat-card,
.cert-stats-section .cert-stat-merged,
.quick-actions .action-item,
.home-personal-section .section-card,
.cert-price-section .section-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
}
.stats-section .stat-card:nth-child(1) { animation-delay: 0.05s; }
.stats-section .stat-card:nth-child(2) { animation-delay: 0.1s; }
.stats-section .stat-card:nth-child(3) { animation-delay: 0.15s; }
.stats-section .stat-card:nth-child(4) { animation-delay: 0.2s; }
.cert-stats-section .cert-stat-merged { animation-delay: 0.25s; }
.quick-actions .action-item:nth-child(1) { animation-delay: 0.4s; }
.quick-actions .action-item:nth-child(2) { animation-delay: 0.45s; }
.quick-actions .action-item:nth-child(3) { animation-delay: 0.5s; }
.quick-actions .action-item:nth-child(4) { animation-delay: 0.55s; }
.home-personal-section .section-card:nth-child(1) { animation-delay: 0.6s; }
.home-personal-section .section-card:nth-child(2) { animation-delay: 0.65s; }
.home-personal-section .section-card:nth-child(3) { animation-delay: 0.7s; }
.home-personal-section .section-card:nth-child(4) { animation-delay: 0.75s; }
.home-personal-section .section-card:nth-child(5) { animation-delay: 0.8s; }
.home-personal-section .section-card:nth-child(6) { animation-delay: 0.85s; }
.home-personal-section .section-card:nth-child(7) { animation-delay: 0.9s; }
.home-personal-section .section-card:nth-child(8) { animation-delay: 0.95s; }
.cert-price-section .section-card { animation-delay: 1s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 悬停上浮效果 */
.stats-section .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.home-personal-section .section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.apilog-hidden {
    display: none;
}
.my-apilog-expand-btn {
    text-align: center;
    padding: 10px;
    color: #6366f1;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s;
}
.my-apilog-expand-btn:hover {
    color: #4f46e5;
}

/* Dashboard home refresh */
.dashboard-page { width:100%; margin: 0 auto; color: #111111; font-family: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Microsoft YaHei", sans-serif; }
.dashboard-welcome { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:23px 0 24px; border-bottom:1px solid #e4e4e7; }
.dashboard-eyebrow { color:#737373; font-size:12px; font-weight:600; letter-spacing:.1em; }
.dashboard-welcome h1 { margin:9px 0 8px; font-size:29px; line-height:1.16; letter-spacing:-.04em; font-weight:800; color:#111111; }
.dashboard-welcome h1 span { color:#111111; }
.dashboard-welcome p { margin:0; color:#737373; font-size:13px; line-height:1.65; }
.dashboard-announcement { display:inline-flex; align-items:center; gap:9px; min-height:37px; padding:0 14px; border:1px solid #dedee2; border-radius:9px; color:#262626; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.04); cursor:pointer; font:inherit; font-size:12px; font-weight:700; transition:box-shadow .2s,border-color .2s,transform .2s; }
.dashboard-announcement:hover { border-color:#c9c9cf; box-shadow:0 5px 14px rgba(17,24,39,.08); transform:translateY(-1px); }
.dashboard-announcement i { font-size:12px; }
.dashboard-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; padding:20px 0; }
.dashboard-stat-card { position:relative; min-width:0; min-height:120px; overflow:hidden; padding:21px 24px 24px; border:1px solid #e1e1e5; border-radius:13px; background:#fff; box-shadow:0 1px 2px rgba(15,23,42,.035),0 2px 8px rgba(15,23,42,.025); text-decoration:none; transition:transform .2s,box-shadow .2s,border-color .2s; }
.dashboard-stat-card:hover { transform:translateY(-2px); border-color:#d2d5dc; box-shadow:0 10px 26px rgba(15,23,42,.09); }
.dashboard-stat-card:any-link, .dashboard-stat-card:hover, .dashboard-stat-card:focus, .dashboard-stat-card:active { text-decoration:none; }
.dashboard-stat-card:focus-visible { outline:2px solid var(--dashboard-accent); outline-offset:3px; }
.dashboard-stat-top { display:flex; align-items:center; justify-content:space-between; color:#686868; font-size:13px; font-weight:600; }
.dashboard-stat-change { color:#08a878; font-size:13px; font-weight:700; white-space:nowrap; }
.dashboard-stat-change i { margin-right:3px; font-size:12px; }
.dashboard-stat-change.is-neutral { color:#85858b; }
.dashboard-stat-change.is-negative { color:#dc4545; }
.dashboard-stat-card strong { display:block; margin:14px 0 8px; color:#0a0a0a; font-size:32px; line-height:1; letter-spacing:-.045em; font-weight:750; }
.dashboard-stat-foot { color:#a0a0a7; font-size:11px; }
.dashboard-stat-line { display:none; }
.dashboard-stat-sparkline { position:absolute; left:20px; right:20px; bottom:12px; width:calc(100% - 40px); height:38px; overflow:visible; pointer-events:none; }
.dashboard-stat-sparkline path { fill:none; stroke:#3568f5; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:1; pathLength:1; animation:dashboard-line-draw .95s cubic-bezier(.22,.61,.36,1) forwards; }
.dashboard-stat-card.is-negative .dashboard-stat-sparkline path { stroke:#dc4545; }
.dashboard-stat-card.dashboard-stat-pending .dashboard-stat-sparkline path { stroke:#a1a8b8; }
.dashboard-stat-line::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.78) 48%,transparent 100%); transform:translateX(-100%); animation:dashboard-line-sheen 1.2s .15s ease-out both; }
.dashboard-stat-card:nth-child(2) .dashboard-stat-line::after { animation-delay:.24s; }
.dashboard-stat-card:nth-child(3) .dashboard-stat-line::after { animation-delay:.33s; }
.dashboard-stat-card:nth-child(4) .dashboard-stat-line::after { animation-delay:.42s; }
@keyframes dashboard-line-in { from { opacity:0; transform:scaleX(0); } to { opacity:1; transform:scaleX(1); } }
@keyframes dashboard-line-sheen { to { transform:translateX(100%); } }
.dashboard-panel { padding:21px; border:1px solid #e1e1e5; border-radius:13px; background:#fff; box-shadow:0 1px 2px rgba(15,23,42,.035),0 2px 8px rgba(15,23,42,.025); }
.dashboard-chart-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr); gap:14px; margin-bottom:14px; }
.dashboard-trend-panel, .dashboard-status-panel { min-width:0; }
.dashboard-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:13px; }
.dashboard-panel-head h2 { margin:0; color:#111111; font-size:16px; line-height:1.3; font-weight:800; letter-spacing:-.02em; }
.dashboard-panel-head p { margin:5px 0 0; color:#a0a0a7; font-size:12px; }
.dashboard-range { display:inline-flex; gap:3px; padding:3px; border:1px solid #e2e2e6; border-radius:9px; background:#f8f8fa; }
.dashboard-range button { min-width:44px; height:28px; padding:0 8px; border:0; border-radius:6px; background:transparent; color:#85858b; cursor:pointer; font:inherit; font-size:11px; font-weight:700; transition:background .2s,color .2s,box-shadow .2s; }
.dashboard-range button:hover { color:#111827; }
.dashboard-range button.active { color:#3568f5; background:#fff; box-shadow:0 1px 4px rgba(17,24,39,.1); }
.dashboard-chart-wrap { position:relative; min-height:250px; }
.dashboard-chart { --chart-draw-duration:1350ms; display:block; width:100%; height:250px; overflow:visible; }
.dashboard-grid-line { stroke:#e8ebf1; stroke-width:1; stroke-dasharray:2 6; }
.dashboard-chart-dot-grid { fill:url(#activation-dots); opacity:.7; }
.dashboard-axis-label { fill:#a1a8b8; font-size:11px; font-family:inherit; }
.dashboard-chart-area { fill:url(#activation-fill); opacity:0; animation:dashboard-area-in .85s .15s ease-out forwards; }
.dashboard-chart-line { fill:none; stroke:#3568f5; stroke-width:2.8; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:1; animation:dashboard-line-draw var(--chart-draw-duration) linear forwards; }
.dashboard-chart-dot { fill:#fff; stroke:#3568f5; stroke-width:2.1; opacity:0; animation:dashboard-dot-in 120ms ease-out forwards; animation-delay:calc(var(--point-progress,0) * var(--chart-draw-duration)); }
.dashboard-chart-dot { cursor:crosshair; transition:r .15s ease,stroke-width .15s ease; }
.dashboard-chart-dot:hover, .dashboard-chart-dot.is-selected { r:5; stroke-width:2.8; }
.dashboard-chart-tooltip { position:absolute; z-index:3; pointer-events:none; display:none; padding:6px 9px; border:1px solid #dce3f2; border-radius:7px; background:rgba(17,24,39,.94); color:#fff; box-shadow:0 5px 16px rgba(15,23,42,.16); font-size:11px; line-height:1.25; white-space:nowrap; transform:translateY(-2px); }
.dashboard-chart-tooltip.is-visible { display:block; }
@keyframes dashboard-line-draw { to { stroke-dashoffset:0; } }
@keyframes dashboard-area-in { from { opacity:0; } to { opacity:1; } }
@keyframes dashboard-dot-in { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) {
    .dashboard-chart-line { animation:none; stroke-dashoffset:0; }
    .dashboard-chart-dot, .dashboard-chart-area { animation:none; opacity:1; }
}
.dashboard-chart-empty { min-height:250px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#9ca3af; font-size:13px; }
.dashboard-status-chart { min-height:250px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; }
.dashboard-status-visual { position:relative; width:min(220px,100%); aspect-ratio:1; display:grid; place-items:center; filter:drop-shadow(0 12px 20px rgba(53,104,245,.09)); }
.dashboard-status-donut { width:100%; height:100%; transform:rotate(-90deg); overflow:visible; }
.dashboard-status-track, .dashboard-status-ring { fill:none; stroke-width:18; }
.dashboard-status-track { stroke:#edf0f5; }
.dashboard-status-ring { stroke-linecap:round; transition:stroke-dasharray .5s ease; }
.dashboard-status-inner { fill:#fff; stroke:#f2f4f8; stroke-width:1; }
.dashboard-status-normal { stroke:#3568f5; }
.dashboard-status-revoked { stroke:#dc4545; }
.dashboard-status-total, .dashboard-status-caption { transform:rotate(90deg); text-anchor:middle; font-family:inherit; }
.dashboard-status-total { fill:#111827; font-size:25px; font-weight:800; }
.dashboard-status-caption { fill:#9ca3af; font-size:10px; }
.dashboard-status-tooltip { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:none; padding:6px 9px; border-radius:7px; background:rgba(17,24,39,.94); color:#fff; font-size:11px; white-space:nowrap; pointer-events:none; }
.dashboard-status-tooltip.is-visible { display:block; }
.dashboard-status-legend { display:flex; justify-content:center; gap:20px; width:100%; }
.dashboard-status-legend button { display:inline-flex; align-items:center; gap:6px; padding:0; border:0; background:transparent; color:#6b7280; cursor:pointer; font:inherit; font-size:11px; }
.dashboard-status-legend i { width:7px; height:7px; border-radius:50%; background:#3568f5; }
.dashboard-status-legend button[data-status="revoked"] i { background:#dc4545; }
.dashboard-status-legend strong { color:#111827; font-size:13px; }
/* Restored certificate distribution animation from the previous dashboard. */
.dashboard-status-panel .ds-chart { gap:14px; padding:4px 0 0; }
.ds-visual { position:relative; width:220px; max-width:100%; aspect-ratio:1; }
.ds-svg { width:100%; height:100%; overflow:visible; }
.ds-guide { fill:none; stroke:#e9edf5; stroke-width:1; stroke-dasharray:2 7; }
.ds-track,.ds-ring { fill:none; stroke-width:17; }
.ds-track { stroke:#edf1f7; }
.ds-ring { stroke-linecap:butt; transition:opacity .2s,stroke-width .2s,filter .2s; }
.ds-ring.ds-normal { stroke:#3568f5; }
.ds-ring.ds-revoked { stroke:#dc4545; }
.ds-ring.is-active { stroke-width:22; filter:drop-shadow(0 3px 5px rgba(25,45,90,.15)); }
.ds-ring.is-muted { opacity:.22; }
.ds-center { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; pointer-events:none; gap:6px; }
.ds-caption { color:#737b89; font-size:11px; }
.ds-number { color:#171d2b; font-size:34px; line-height:1.15; letter-spacing:-1.2px; font-weight:750; font-variant-numeric:tabular-nums; }
.ds-detail { color:#737b89; font-size:10px; font-variant-numeric:tabular-nums; }
.ds-legend { display:grid; gap:5px; width:100%; }
.ds-item { display:grid; grid-template-columns:1fr auto 52px; align-items:center; gap:10px; width:100%; padding:9px 12px; border:1px solid transparent; border-radius:8px; background:transparent; cursor:pointer; text-align:left; transition:background .2s,border-color .2s; font:inherit; }
.ds-item:hover,.ds-item.is-active { background:#f6f8fc; border-color:#e8edf7; }
.ds-label { display:flex; align-items:center; gap:8px; color:#667085; font-size:12px; }
.ds-label i { width:8px; height:8px; border-radius:50%; background:#3568f5; }
.ds-item.ds-revoked .ds-label i { background:#dc4545; }
.ds-item strong { color:#202838; font-size:14px; font-variant-numeric:tabular-nums; }
.ds-percent { text-align:right; color:#8a92a0; font-size:11px; font-variant-numeric:tabular-nums; }
.ds-item:focus-visible { outline:2px solid #3568f5; outline-offset:2px; }
@media(prefers-reduced-motion:reduce){ .ds-ring,.ds-item { transition:none; } }
.ds-visual,.ds-item { -webkit-user-select:none; user-select:none; }
.ds-ring,.ds-item { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.ds-ring { cursor:pointer; }
.dashboard-chart-empty i { color:#d1d5db; font-size:24px; }
.dashboard-unit { color:#a0a0a7; font-size:11px; white-space:nowrap; }
.dashboard-price-panel { margin-bottom:18px; }
.dashboard-price-grid { overflow:hidden; border:1px solid #ededf0; border-radius:10px; }
.dashboard-price-table { width:100%; table-layout:fixed; border-collapse:collapse; color:#262626; font-size:13px; font-variant-numeric:tabular-nums; }
.dashboard-price-table th, .dashboard-price-table td { padding:10px 12px; text-align:center; vertical-align:middle; }
.dashboard-price-table thead { background:#f8f9fb; color:#737373; font-size:11px; }
.dashboard-price-table thead th { padding-top:9px; padding-bottom:9px; font-weight:500; }
.dashboard-price-table th:first-child { width:28%; text-align:left; }
.dashboard-price-table tbody th { font-weight:600; overflow-wrap:anywhere; }
.dashboard-price-table tbody tr { border-top:1px solid #f0f0f2; }
.dashboard-price-table tbody tr:hover { background:#fafbfe; }
.dashboard-price-table strong { display:block; font-size:15px; font-weight:600; line-height:1.35; }
.dashboard-price-table th:nth-child(2), .dashboard-price-table td:nth-child(2) strong { color:#3568f5; }
.dashboard-price-table small { display:block; margin-top:3px; color:#94949c; font-size:10px; line-height:1.4; }
.dashboard-price-message { margin:0; padding:20px 12px; color:#737373; text-align:center; font-size:12px; }
.dashboard-price-status { margin:8px 0 0; color:#a16207; font-size:11px; }
.dashboard-price-status:empty { display:none; }

/* Dashboard shell is assembled by station-front.js. */
:root { --dashboard-accent:#3568f5; --dashboard-ink:#111111; --dashboard-muted:#6b7280; --dashboard-line:#e2e2e5; --dashboard-surface:#fff; --dashboard-bg:#fdfdfd; }
body { padding-bottom:0; background:var(--dashboard-bg); color:var(--dashboard-ink); }
.mobile-view-container { max-width:100%; margin:0 auto; background:var(--dashboard-bg); min-height:100vh; }
.desktop-sidebar, .dashboard-page-nav { display:none; }
.dashboard-sidebar-backdrop, .dashboard-sidebar-close { display:none; }
@media (min-width:769px) {
    :root { --dashboard-sidebar-width:256px; }
    :root[data-sidebar-collapsed="true"] { --dashboard-sidebar-width:48px; }
    body { padding:0; background:var(--dashboard-bg); }
    .mobile-view-container { max-width:none; width:100%; margin:0; min-height:100vh; }
    .ios-header, .ios-bottom-nav { display:none !important; }
    .desktop-sidebar { display:flex; position:fixed; inset:0 auto 0 0; width:var(--dashboard-sidebar-width); flex-direction:column; background:#ffffff; border-right:1px solid var(--dashboard-line); z-index:1100; overflow:hidden; transition:width .2s ease; }
}
    .desktop-brand { height:72px; display:flex; align-items:center; gap:10px; padding:0 20px; border-bottom:1px solid #ededee; font-size:15px; font-weight:800; letter-spacing:-.2px; }
    .desktop-brand-mark { width:28px; height:28px; display:grid; place-items:center; color:#25272b; background:transparent; border-radius:8px; font-size:16px; }
    .desktop-nav { flex:1; overflow-y:auto; scrollbar-width:none; padding:0 8px 15px; display:grid; align-content:start; gap:2px; }
    .desktop-nav::-webkit-scrollbar { display:none; }
    .desktop-nav-label { margin:12px 12px 4px; color:#74777d; font-size:11px; font-weight:700; letter-spacing:.08em; }
    .desktop-nav-label:first-child { margin-top:0; }
    .desktop-nav a { display:flex; align-items:center; gap:11px; min-height:36px; padding:0 12px; color:#36383d; border-radius:8px; text-decoration:none; font-size:13px; font-weight:600; transition:background .18s,color .18s; }
    .desktop-nav a:hover, .desktop-nav a.active { color:#141518; background:#ececee; }
    .desktop-nav a i { width:16px; text-align:center; color:#303238; font-size:14px; }
    .desktop-account { margin-top:auto; padding:16px 20px 20px; border-top:1px solid #ededee; display:flex; align-items:center; gap:10px; }
    .desktop-account-avatar { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:#ececee; color:#303238; font-size:12px; font-weight:800; }
    .desktop-account-copy { min-width:0; }
    .desktop-account-name { font-size:12px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .desktop-account-email { margin-top:2px; color:#81848a; font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .desktop-brand, .desktop-account { flex-shrink:0; }
    .desktop-brand > span, .desktop-nav a span { white-space:nowrap; }
    .desktop-brand-mark, .desktop-account-avatar { flex-shrink:0; }
    .desktop-nav a:focus-visible { outline:2px solid var(--dashboard-accent); outline-offset:-2px; }
@media (min-width:769px) {
    [data-sidebar-collapsed="true"] .desktop-brand > span:not(.desktop-brand-mark),
    [data-sidebar-collapsed="true"] .desktop-nav a span,
    [data-sidebar-collapsed="true"] .desktop-account-copy { display:none; }
    [data-sidebar-collapsed="true"] .desktop-brand { padding:0; justify-content:center; }
    [data-sidebar-collapsed="true"] .desktop-nav { padding:0 7px 12px; }
    [data-sidebar-collapsed="true"] .desktop-nav-label { height:12px; margin:0; overflow:hidden; font-size:0; }
    [data-sidebar-collapsed="true"] .desktop-nav-label:first-child { height:0; }
    [data-sidebar-collapsed="true"] .desktop-nav a { justify-content:center; gap:0; padding:0; min-height:32px; }
    [data-sidebar-collapsed="true"] .desktop-account { justify-content:center; padding:12px 0; }
}
    .dashboard-page-nav { display:flex; align-items:center; gap:12px; height:56px; margin-left:var(--dashboard-sidebar-width); padding:0 20px; color:#262626; font-size:14px; transition:margin-left .2s ease; }
    .dashboard-sidebar-toggle { display:grid; place-items:center; flex-shrink:0; width:32px; height:32px; padding:8px; border:0; border-radius:6px; color:inherit; background:transparent; cursor:pointer; }
    .dashboard-sidebar-toggle svg { display:block; width:14px; height:14px; fill:currentColor; }
    .dashboard-sidebar-toggle:hover { background:#ececee; }
    .dashboard-sidebar-toggle:focus-visible { outline:2px solid var(--dashboard-accent); outline-offset:2px; }
    .dashboard-eyebrow { display:none; }
    .dashboard-welcome { padding-top:4px; }
@media (min-width:769px) {
    #main-content { margin-left:var(--dashboard-sidebar-width); padding:8px 24px 40px; min-height:calc(100vh - 56px); transition:margin-left .2s ease; }
}
.ios-header { position:fixed; top:0; left:0; right:0; z-index:1000; width:100%; background:rgba(255,255,255,.95); backdrop-filter:blur(20px); border-bottom:1px solid rgba(0,0,0,.1); }
.nav-content { display:flex; align-items:center; justify-content:space-between; padding:0 16px; height:44px; max-width:100%; margin:0 auto; }
.nav-left, .nav-center, .nav-right { display:flex; align-items:center; flex:1; }
.nav-left { justify-content:flex-start; }
.nav-center { justify-content:center; }
.nav-right { justify-content:flex-end; }
.nav-btn { background:none; border:none; color:#007AFF; font-size:17px; cursor:pointer; padding:8px 12px; border-radius:8px; display:flex; align-items:center; gap:4px; }
.nav-icon-btn { color:#007AFF; font-size:18px; padding:8px; }
.nav-title { font-size:17px; font-weight:600; color:#000; margin:0; }
#main-content { padding:56px 0 100px; min-height:calc(100vh - 140px); background:var(--dashboard-bg); }
@media (min-width:769px) { #main-content { padding:8px 24px 40px; min-height:calc(100vh - 56px); } }
@media (prefers-reduced-motion:reduce) {
    .desktop-sidebar, .dashboard-page-nav, #main-content { transition:none; }
}
@media (max-width:768px) { .ios-header { display:none !important; } }
@media (max-width: 768px) {
    #main-content { margin-left:0; padding:0 0 max(24px,env(safe-area-inset-bottom)); min-height:calc(100dvh - 52px); transition:none; }
    .dashboard-page-nav { height:52px; margin-left:0; padding:0 10px; gap:8px; transition:none; }
    .dashboard-sidebar-toggle { width:36px; height:36px; }
    /* Let fixed top/bottom insets follow Safari's visual viewport. An explicit
       100vh/100dvh height can leave a white strip when the browser toolbar
       expands or collapses while the drawer is open. */
    .desktop-sidebar { display:flex; position:fixed; inset:0 auto -180px 0; width:min(288px,calc(100vw - 48px)); height:auto; min-height:calc(100% + 180px); flex-direction:column; overflow:hidden; background:#fff; z-index:1200; visibility:hidden; transform:translateX(-100%); transition:transform 300ms cubic-bezier(.4,0,.2,1),visibility 0s 300ms; }
    .dashboard-sidebar-backdrop { display:block; position:fixed; inset:0 0 -180px; width:auto; height:auto; background:rgba(0,0,0,.5); z-index:1190; opacity:0; visibility:hidden; pointer-events:none; transition:opacity 300ms ease,visibility 0s 300ms; }
    [data-mobile-sidebar-open="true"], [data-mobile-sidebar-open="true"] body { overflow:hidden; }
    [data-mobile-sidebar-open="true"] .desktop-sidebar { visibility:visible; transform:translateX(0); transition:transform 500ms cubic-bezier(.4,0,.2,1),visibility 0s; }
    [data-mobile-sidebar-open="true"] .dashboard-sidebar-backdrop { opacity:1; visibility:visible; pointer-events:auto; transition:opacity 500ms ease,visibility 0s; }
    .desktop-brand { height:64px; padding:0 16px; border-bottom:0; }
    .desktop-nav { min-height:0; overscroll-behavior:contain; padding:0 8px 12px; }
    .desktop-nav-label { margin:12px 8px 4px; letter-spacing:0; font-weight:500; }
    .desktop-nav a { min-height:32px; padding:0 8px; font-weight:500; border-radius:6px; }
    .desktop-account { padding:12px 16px max(12px,env(safe-area-inset-bottom)); border-top:0; }
    .desktop-account-avatar { border-radius:6px; }
    .dashboard-sidebar-close { display:grid; place-items:center; margin-left:auto; width:32px; height:32px; padding:7px; border:0; border-radius:6px; background:transparent; color:#737373; cursor:pointer; }
    .dashboard-sidebar-close svg { width:18px; height:18px; stroke:currentColor; stroke-width:1.5; fill:none; }
    .dashboard-sidebar-close:hover { background:#ececee; }
    .dashboard-sidebar-close:focus-visible { outline:2px solid var(--dashboard-accent); outline-offset:2px; }
    .dashboard-page { width:100%; }
    .dashboard-welcome { align-items:flex-start; padding:4px 14px 17px; }
    .dashboard-welcome h1 { font-size:22px; line-height:1.2; }
    .dashboard-welcome p { font-size:12px; }
    .dashboard-eyebrow { font-size:10px; }
    .dashboard-announcement { min-height:32px; padding:0 10px; font-size:11px; }
    .dashboard-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:14px; }
    .dashboard-stat-card { min-height:100px; padding:14px 13px 22px; border-radius:10px; }
    .dashboard-stat-card strong { margin:12px 0 8px; font-size:24px; }
    .dashboard-stat-top { font-size:11px; }
    .dashboard-stat-foot { font-size:10px; }
    .dashboard-panel { margin:0 14px 12px; padding:15px 13px; border-radius:10px; }
    .dashboard-panel-head { gap:10px; }
    .dashboard-panel-head h2 { font-size:14px; }
    .dashboard-panel-head p { font-size:11px; }
    .dashboard-range button { min-width:39px; padding:0 6px; font-size:10px; }
    .dashboard-chart-grid { grid-template-columns:1fr; gap:12px; margin-bottom:12px; }
    .dashboard-chart-wrap, .dashboard-chart-empty { min-height:220px; }
    .dashboard-chart { height:220px; }
    .dashboard-status-chart { min-height:220px; }
    .dashboard-stat-sparkline { left:12px; right:12px; bottom:9px; width:calc(100% - 24px); height:32px; }
    .dashboard-price-panel .dashboard-panel-head { align-items:center; }
    .dashboard-price-table th, .dashboard-price-table td { padding:9px 6px; }
    .dashboard-price-table tbody th { font-size:11px; }
    .dashboard-price-table strong { font-size:13px; }
    .dashboard-price-table small { font-size:9px; }
}
@media (prefers-reduced-motion:reduce) {
    .desktop-sidebar, .dashboard-sidebar-backdrop,
    [data-mobile-sidebar-open="true"] .desktop-sidebar,
    [data-mobile-sidebar-open="true"] .dashboard-sidebar-backdrop { transition:none; }
}
