* { 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 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; }
.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);
}
.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: 16px; }
.profile-card .profile-icon { background: linear-gradient(135deg, #0ea5e9, #38bdf8); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3); }
.profile-info-list { margin-bottom: 20px; }
.profile-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
}
.profile-info-row:last-child { border-bottom: none; }
.profile-label { color: #4b5563; font-weight: 500; }
.profile-value { color: #1f2937; text-align: right; }
.profile-actions { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.profile-change-pwd-btn {
    flex: 1; min-width: 120px; padding: 12px 16px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8); color: #fff;
    border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.profile-change-pwd-btn:hover { opacity: 0.9; }
.profile-logout-btn {
    flex: 1; min-width: 120px; padding: 12px 16px;
    background: #e5e7eb; color: #374151;
    border: none; border-radius: 12px;
    font-size: 14px; font-weight: 500;
    cursor: pointer; transition: background 0.2s;
}
.profile-logout-btn:hover { background: #d1d5db; }
.profile-logout-btn:active { background: #9ca3af; }
.profile-loading { color: #64748b; font-size: 14px; padding: 12px 0; }

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

.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-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-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-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-version { background: #dbeafe; color: #1d4ed8; }
.device-tag-source { background: #fef3c7; color: #b45309; }
.device-tag-package { background: #e0e7ff; color: #4338ca; }
.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: #007AFF;
    --nav-accent-soft: rgba(0, 122, 255, 0.1);
    --nav-inactive: #64748b;
    --nav-bg: rgba(255, 255, 255, 0.94);
    --nav-border: rgba(0, 0, 0, 0.06);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--nav-border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}
.ios-bottom-nav .nav-container {
    display: flex; align-items: stretch; justify-content: space-around;
    gap: 2px; padding: 10px 12px 14px; min-height: 56px;
    max-width: 420px; margin: 0 auto;
}
@media (min-width: 769px) {
    .ios-bottom-nav .nav-container { max-width: 720px; padding: 10px 24px 14px; }
}
.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: 8px 4px; border-radius: 12px;
    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: var(--nav-accent-soft); color: var(--nav-accent); }
.ios-bottom-nav .nav-item:active { transform: scale(0.96); }
.ios-bottom-nav .nav-item.active { color: var(--nav-accent); }
.ios-bottom-nav .nav-icon {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-bottom: 4px;
}
.ios-bottom-nav .nav-icon i { font-size: 20px; }
.ios-bottom-nav .nav-label { font-size: 11px; font-weight: 500; }

.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; }
.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-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; }
.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; gap: 8px; flex-shrink: 0; }
.my-token-btn { padding: 6px 12px; font-size: 12px; 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; }
.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-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;
}

.install-modal-panel { max-width: 400px; }
.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; }

.recharge-modal-form .recharge-amount { margin-bottom: 14px; }
.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); }
