.dsp-container,
.dsp-container * {
    box-sizing: border-box;
}

.dsp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.dsp-header {
    text-align: center;
    margin-bottom: 30px;
}

.dsp-header h1 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.dsp-header p {
    color: #666;
    font-size: 14px;
}

.dsp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: flex-end;
}

.dsp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 120px;
}

.dsp-filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.dsp-filter-group input,
.dsp-filter-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    width: 100%;
    min-width: 120px;
}

.dsp-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsp-price-inputs input {
    flex: 1;
}

.dsp-filter-btn {
    padding: 10px 18px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.dsp-filter-btn:hover {
    background: #0056b3;
}

.dsp-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.dsp-domain-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dsp-domain-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dsp-domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.dsp-domain-name a {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    word-break: break-all;
}

.dsp-domain-name a:hover {
    color: #007bff;
}

.dsp-type-badge {
    padding: 3px 8px;
    background: #e7f3ff;
    color: #007bff;
    border-radius: 15px;
    font-size: 11px;
    white-space: nowrap;
}

.dsp-verified-badge {
    padding: 3px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 15px;
    font-size: 11px;
    white-space: nowrap;
}

.dsp-domain-price {
    margin-bottom: 12px;
}

.dsp-price-label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.dsp-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
}

.dsp-price-hint {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.dsp-domain-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.dsp-meta-item {
    font-size: 12px;
    color: #666;
    padding: 3px 6px;
    background: #f8f9fa;
    border-radius: 3px;
}

.dsp-auction-time {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    background: #fff3cd;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    flex-wrap: wrap;
}

.dsp-time-label,
.dsp-timer-label {
    font-size: 12px;
    color: #856404;
}

.dsp-time-value,
.dsp-timer-value {
    font-size: 12px;
    font-weight: 600;
    color: #856404;
}

.dsp-domain-actions {
    display: flex;
    gap: 8px;
}

.dsp-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.dsp-form .dsp-btn {
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    display: block;
}

.dsp-btn-primary {
    background: #007bff;
    color: white;
}

.dsp-btn-primary:hover {
    background: #0056b3;
}

.dsp-btn-secondary {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.dsp-btn-secondary:hover {
    background: #e9ecef !important;
}

.dsp-buy-cancel {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.dsp-buy-modal .dsp-buy-cancel {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

.dsp-no-results {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dsp-pagination {
    text-align: center;
    margin-top: 25px;
}

.dsp-pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.dsp-pagination a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.dsp-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.dsp-form-group {
    margin-bottom: 15px;
}

.dsp-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 13px;
}

.dsp-form-group input,
.dsp-form-group select,
.dsp-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #333;
    background: white;
}

.dsp-buyer-id {
    color: #333 !important;
    background: white !important;
}

.dsp-transfer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsp-transfer-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: calc(100vh - 80px);
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dsp-transfer-modal .dsp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    position: relative;
    flex-shrink: 0;
}

.dsp-transfer-modal .dsp-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    text-align: left;
    flex: none;
}

.dsp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.dsp-modal-close:hover {
    color: #333;
}

.dsp-transfer-modal .dsp-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.dsp-info-section {
    margin-bottom: 20px;
}

.dsp-info-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.dsp-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dsp-info-item label {
    color: #666;
    font-size: 14px;
}

.dsp-info-item span {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.dsp-account-item {
    flex-direction: column;
    gap: 8px;
}

.dsp-account-value {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.dsp-account-value span {
    flex: 1;
    font-family: monospace;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.dsp-copy-btn {
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.dsp-copy-btn:hover {
    background: #0056b3;
}

.dsp-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.dsp-warning p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.dsp-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.dsp-modal-footer .dsp-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

.dsp-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.dsp-btn-secondary:hover {
    background: #e9ecef;
}

.dsp-btn-primary {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.dsp-btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

.dsp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dsp-form-group input[type="number"]::-webkit-inner-spin-button,
.dsp-form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dsp-form-group input[type="number"] {
    -moz-appearance: textfield;
}

.dsp-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.dsp-form-hint {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.required {
    color: #dc3545;
}

.dsp-verification-box {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.dsp-verification-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.dsp-verification-details p {
    margin: 8px 0;
    font-family: monospace;
    font-size: 13px;
}

.dsp-verification-details code {
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}

.dsp-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin: 12px 0;
    font-size: 13px;
}

.dsp-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin: 12px 0;
    font-size: 13px;
}

.dsp-single-domain {
    max-width: 700px;
    margin: 0 auto;
}

.dsp-domain-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.dsp-info-row {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    background: white;
}

.dsp-info-row:nth-child(2n) {
    border-right: none;
}

.dsp-info-row:last-child,
.dsp-info-row:nth-last-child(2) {
    border-bottom: none;
}

.dsp-info-label {
    flex: 1;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    background: #f8f9fa;
    padding-right: 12px;
    padding-left: 12px;
    margin-left: -16px;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-top: -12px;
    margin-bottom: -12px;
    min-width: 100px;
}

.dsp-info-value {
    flex: 2;
    font-size: 14px;
    color: #333;
    padding-left: 12px;
    display: flex;
    align-items: center;
}

.dsp-price-highlight {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.dsp-domain-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dsp-domain-actions .dsp-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    min-width: 160px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dsp-domain-actions .dsp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



.dsp-sold-badge {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.dsp-domain-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.dsp-details-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}



.dsp-domain-description {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.dsp-domain-description h3 {
    margin-bottom: 12px;
    font-size: 15px;
}

.dsp-domain-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.dsp-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dsp-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 13px;
}

.dsp-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.dsp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: nowrap;
    gap: 12px;
}

.dsp-section-header h2 {
    font-size: 16px;
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dsp-section-header .dsp-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.dsp-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.dsp-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.dsp-table th,
.dsp-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    white-space: nowrap;
}

.dsp-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.dsp-table-action {
    margin-right: 12px;
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
}

.dsp-table-action:hover {
    text-decoration: underline;
}

.dsp-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.dsp-empty-state p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.dsp-pending-badge {
    margin-left: 8px;
    padding: 2px 6px;
    background: #fff3cd;
    color: #856404;
    border-radius: 3px;
    font-size: 11px;
}

.dsp-status-pending {
    color: #ffc107;
    font-weight: 600;
}

.dsp-status-approved {
    color: #28a745;
    font-weight: 600;
}

.dsp-status-rejected {
    color: #dc3545;
    font-weight: 600;
}

.dsp-status-sold {
    color: #6c757d;
    font-weight: 600;
}

.dsp-main-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    flex-wrap: nowrap;
}

.dsp-main-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dsp-main-tab:hover {
    border-color: #007bff;
    color: #007bff;
}

.dsp-main-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.dsp-domain-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.dsp-domain-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.dsp-domain-table th,
.dsp-domain-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.dsp-domain-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.dsp-domain-table tr:hover {
    background: #f8f9fa;
}

.dsp-domain-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dsp-domain-name-cell a {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.dsp-domain-name-cell a:hover {
    color: #007bff;
}

.dsp-whois-badge {
    padding: 3px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 15px;
    font-size: 11px;
    white-space: nowrap;
}

.dsp-type-tag {
    padding: 4px 10px;
    background: #e7f3ff;
    color: #007bff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.dsp-price-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dsp-price-cell .dsp-price-label {
    font-size: 11px;
    color: #666;
}

.dsp-price-cell .dsp-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.dsp-btn-sm {
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.4;
    min-height: 26px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .dsp-btn-sm {
        padding: 2px 6px;
        font-size: 10px;
        min-height: 22px;
    }
}

.dsp-no-results-cell {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
}

.dsp-balance-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
    flex-wrap: nowrap;
}

.dsp-balance-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dsp-balance-label {
    font-size: 13px;
    opacity: 0.92;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.dsp-balance-value {
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    margin-right: auto;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dsp-zib-recharge-btn,
.dsp-balance-info .dsp-recharge-btn,
.dsp-balance-info .balance-charge-link,
.dsp-balance-info a.balance-charge-link,
.dsp-balance-info .but.b-blue-2 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1.5 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.dsp-zib-recharge-btn:hover,
.dsp-balance-info .dsp-recharge-btn:hover,
.dsp-balance-info .balance-charge-link:hover,
.dsp-balance-info a.balance-charge-link:hover,
.dsp-balance-info .but.b-blue-2:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.dsp-zib-recharge-btn:active,
.dsp-balance-info .dsp-recharge-btn:active,
.dsp-balance-info .balance-charge-link:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4) !important;
}

.dsp-zib-recharge-btn .mr3 {
    margin-right: 4px;
}

@media (max-width: 640px) {
    body .dsp-container .dsp-balance-info,
    .dsp-balance-info {
        flex-wrap: nowrap !important;
        padding: 10px 12px !important;
        gap: 6px !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: row !important;
    }
    body .dsp-container .dsp-balance-info .dsp-balance-label,
    .dsp-balance-info .dsp-balance-label {
        font-size: 11px !important;
        padding: 3px 7px !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
        width: auto !important;
    }
    body .dsp-container .dsp-balance-info .dsp-balance-value,
    .dsp-balance-info .dsp-balance-value {
        margin-right: 0 !important;
        font-size: 16px !important;
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: inline-block !important;
        width: auto !important;
        line-height: 1.3 !important;
    }
    body .dsp-container .dsp-balance-info .dsp-zib-recharge-btn,
    body .dsp-container .dsp-balance-info .dsp-recharge-btn,
    body .dsp-container .dsp-balance-info .balance-charge-link,
    body .dsp-container .dsp-balance-info a.balance-charge-link,
    body .dsp-container .dsp-balance-info .but.b-blue-2,
    body .dsp-container .dsp-balance-info > a,
    body .dsp-container .dsp-balance-info > button,
    body .dsp-container .dsp-balance-info > div,
    .dsp-balance-info .dsp-zib-recharge-btn,
    .dsp-balance-info .dsp-recharge-btn,
    .dsp-balance-info .balance-charge-link,
    .dsp-balance-info a.balance-charge-link,
    .dsp-balance-info .but.b-blue-2,
    .dsp-balance-info > a,
    .dsp-balance-info > button,
    .dsp-balance-info > div {
        width: auto !important;
        max-width: 45% !important;
        padding: 5px 10px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
        border-radius: 7px !important;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.4 !important;
        height: auto !important;
        white-space: nowrap !important;
    }
    body .dsp-container .dsp-section-header,
    .dsp-section-header {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: row !important;
    }
    body .dsp-container .dsp-section-header h2,
    .dsp-section-header h2 {
        font-size: 14px !important;
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }
    body .dsp-container .dsp-section-header .dsp-btn,
    .dsp-section-header .dsp-btn,
    .dsp-section-header > button,
    .dsp-section-header > a {
        flex-shrink: 0 !important;
        padding: 7px 12px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        line-height: 1.4 !important;
    }
}

.dsp-inline-recharge,
.dsp-inline-recharge-but {
    display: inline-block !important;
    padding: 2px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    margin-left: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    line-height: 1.6 !important;
    cursor: pointer !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
}

.dsp-inline-recharge:hover,
.dsp-inline-recharge-but:hover {
    color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.15) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
    text-decoration: none !important;
    transform: none !important;
}

.dsp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.dsp-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
    margin-bottom: 20px;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dsp-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    flex-shrink: 0;
}

.dsp-modal-header h3 {
    margin: 0;
    font-size: 16px;
    text-align: center;
    flex: 1;
}

.dsp-modal-header .dsp-modal-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.dsp-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.dsp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dsp-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.dsp-modal-body {
    padding: 20px;
}

@media screen and (max-width: 768px) {
    .dsp-container {
        padding: 10px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        min-width: auto;
    }
    
    .dsp-header {
        padding: 0 5px;
    }
    
    .dsp-header h1 {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .dsp-header p {
        font-size: 13px;
    }
    
    .dsp-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        width: 100%;
        border-radius: 6px;
    }
    
    .dsp-filter-group {
        min-width: 100%;
        width: 100%;
    }
    
    .dsp-filter-group label {
        font-size: 12px;
    }
    
    .dsp-filter-group input,
    .dsp-filter-group select {
        padding: 10px;
        font-size: 14px;
        min-width: 100%;
        border-radius: 4px;
    }
    
    .dsp-price-inputs {
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }
    
    .dsp-price-inputs input {
        flex: 1;
        min-width: 0;
    }
    
    .dsp-filter-btn {
        align-self: stretch;
        padding: 12px;
        font-size: 15px;
        width: 100%;
        border-radius: 4px;
    }
    
    .dsp-domain-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }
    
    .dsp-domain-card {
        padding: 12px;
        width: 100%;
        border-radius: 6px;
    }
    
    .dsp-domain-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dsp-domain-name a {
        font-size: 15px;
        word-break: break-all;
        width: 100%;
        display: block;
    }
    
    .dsp-type-badge {
        align-self: flex-start;
    }
    
    .dsp-price-value {
        font-size: 20px;
    }
    
    .dsp-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dsp-section-header h2 {
        font-size: 15px;
    }
    
    .dsp-table-wrapper {
        border-radius: 0;
        box-shadow: none;
        border: 1px solid #eee;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .dsp-table {
        min-width: 600px;
        width: auto;
        border-radius: 0;
    }
    
    .dsp-table th,
    .dsp-table td {
        padding: 10px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .dsp-domain-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    
    .dsp-domain-actions .dsp-btn {
        width: 100%;
        max-width: 200px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 4px;
    }
    
    .dsp-tabs {
        justify-content: flex-start;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .dsp-tab {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    .dsp-form,
    .dsp-verification-box {
        padding: 12px;
        width: 100%;
        max-width: 100%;
        border-radius: 6px;
        box-shadow: none;
        border: 1px solid #eee;
        margin: 0 -10px;
    }
    
    .dsp-form-group {
        margin-bottom: 12px;
    }
    
    .dsp-form-group label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .dsp-form-group input,
    .dsp-form-group select,
    .dsp-form-group textarea {
        padding: 10px;
        font-size: 14px;
        border-radius: 4px;
        border: 1px solid #ddd;
    }
    
    .dsp-btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 4px;
    }
    
    .dsp-empty-state {
        padding: 30px 15px;
        border-radius: 6px;
    }
    
    .dsp-pagination {
        padding: 0 5px;
    }
    
    .dsp-pagination a {
        padding: 8px 10px;
        font-size: 12px;
        margin: 0 2px;
        border-radius: 4px;
    }
    
    .dsp-domain-meta {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .dsp-meta-item {
        font-size: 11px;
        padding: 2px 5px;
    }
    
    .dsp-single-domain {
        max-width: 100%;
        width: 100%;
    }
    
    .dsp-domain-info-grid {
        grid-template-columns: 1fr;
    }
    
    .dsp-info-row {
        border-right: none;
    }
    
    .dsp-info-row:nth-child(2n) {
        border-right: none;
    }
    
    .dsp-info-label {
        min-width: 80px;
        font-size: 13px;
    }
    
    .dsp-info-value {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .dsp-container {
        padding: 8px;
        min-width: auto;
    }
    
    .dsp-header h1 {
        font-size: 20px;
    }
    
    .dsp-header p {
        font-size: 12px;
    }
    
    .dsp-domain-card {
        padding: 10px;
    }
    
    .dsp-price-value {
        font-size: 18px;
    }
    
    .dsp-info-row {
        padding: 10px 12px;
    }
    
    .dsp-info-label {
        min-width: 70px;
        font-size: 12px;
    }
    
    .dsp-info-value {
        font-size: 12px;
    }
    
    .dsp-price-highlight {
        font-size: 16px;
    }
    
    .dsp-empty-state {
        padding: 25px 12px;
    }
    
    .dsp-empty-state p {
        font-size: 13px;
    }
    
    .dsp-btn {
        padding: 9px 14px;
        font-size: 13px;
    }
    
    .dsp-filter-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .dsp-tab {
        padding: 7px 12px;
        font-size: 11px;
    }
    
    .dsp-table th,
    .dsp-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
}

.dsp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.dsp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: white;
    position: relative;
}

.dsp-checkbox-label input[type="checkbox"]:checked {
    background: #007bff;
    border-color: #007bff;
}

.dsp-checkbox-label input[type="checkbox"]:checked::after {
    content: '\2714';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.dsp-checkbox-label span {
    flex: 1;
    text-align: left;
}

#dsp_min_price_group {
    display: none;
}

.dsp-verification-actions {
    text-align: center;
    margin-top: 15px;
}

.dsp-verification-actions .dsp-btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.dsp-seller-link {
    color: #007bff;
    text-decoration: none;
}

.dsp-seller-link:hover {
    text-decoration: underline;
}

.dsp-seller-stats {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.dsp-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    min-width: 90px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dsp-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dsp-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dsp-stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

.dsp-seller-profile {
    max-width: 900px;
    margin: 0 auto;
}

.dsp-seller-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.dsp-seller-header h1 {
    font-size: 24px;
    margin: 0;
}

.dsp-hide-stats-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dsp-seller-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.dsp-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dsp-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dsp-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.1;
}

.dsp-stat-card .dsp-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.dsp-seller-domains {
    margin-top: 30px;
}

.dsp-seller-domains h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.dsp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.dsp-empty {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

@media screen and (max-width: 768px) {
    .dsp-seller-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dsp-hide-stats-form {
        justify-content: flex-start;
    }
    
    .dsp-seller-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dsp-stat-card {
        padding: 15px;
    }
    
    .dsp-stat-number {
        font-size: 24px;
    }
    
    .dsp-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dsp-seller-stats {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 320px) {
    .dsp-container {
        padding: 5px;
    }
    
    .dsp-header h1 {
        font-size: 18px;
    }
    
    .dsp-domain-card {
        padding: 8px;
    }
    
    .dsp-domain-name a {
        font-size: 14px;
    }
    
    .dsp-table th,
    .dsp-table td {
        padding: 6px 4px;
        font-size: 10px;
    }
    
    .dsp-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .dsp-tabs {
        gap: 3px;
    }
    
    .dsp-tab {
        padding: 6px 10px;
        font-size: 10px;
    }
}

/* ===== 子比主题暗黑模式适配 ===== */
body.dark-theme .dsp-container {
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-header h1,
body.dark-theme .dsp-header p,
body.dark-theme .dsp-guide-box h3,
body.dark-theme .dsp-domain-description h3,
body.dark-theme .dsp-purchase-rules h3 {
    color: var(--key-color, #f0f0f0);
}

body.dark-theme .dsp-guide-box,
body.dark-theme .dsp-domain-description,
body.dark-theme .dsp-purchase-rules {
    background: var(--main-bg-color, #2a2a2a);
    border-color: var(--main-border-color, #444);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-guide-box li,
body.dark-theme .dsp-domain-description p,
body.dark-theme .dsp-purchase-rules li {
    color: var(--muted-color, #bbb);
}

body.dark-theme .dsp-guide-box p,
body.dark-theme .dsp-domain-description h3,
body.dark-theme .dsp-purchase-rules h3 {
    color: var(--key-color, #f0f0f0);
}

body.dark-theme .dsp-balance-info {
    background: linear-gradient(135deg, #4a5fc1 0%, #5a4ba2 100%);
}

body.dark-theme .dsp-header h1,
body.dark-theme .dsp-section-header h2,
body.dark-theme .dsp-seller-header h1,
body.dark-theme .dsp-domain-description h3,
body.dark-theme .dsp-seller-domains h2 {
    color: var(--key-color, #f0f0f0);
}

body.dark-theme .dsp-header p,
body.dark-theme .dsp-domain-description p,
body.dark-theme .dsp-empty-state p,
body.dark-theme .dsp-empty {
    color: var(--muted-2-color, #999);
}

body.dark-theme .dsp-form,
body.dark-theme .dsp-verification-box,
body.dark-theme .dsp-details-section,
body.dark-theme .dsp-domain-description,
body.dark-theme .dsp-empty-state,
body.dark-theme .dsp-info-row,
body.dark-theme .dsp-modal,
body.dark-theme .dsp-transfer-modal,
body.dark-theme .dsp-stat-card {
    background: var(--main-bg-color, #2a2a2a);
    border-color: var(--main-border-color, #444);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-filters,
body.dark-theme .dsp-domain-info-grid,
body.dark-theme .dsp-table,
body.dark-theme .dsp-domain-table,
body.dark-theme .dsp-tab,
body.dark-theme .dsp-main-tab,
body.dark-theme .dsp-checkbox-label,
body.dark-theme .dsp-info-section,
body.dark-theme .dsp-seller-stats,
body.dark-theme .dsp-verification-details,
body.dark-theme .dsp-account-value {
    background: var(--main-bg-color, #2a2a2a);
    border-color: var(--main-border-color, #444);
}

body.dark-theme .dsp-domain-card {
    background: var(--main-bg-color, #2a2a2a);
    border-color: var(--main-border-color, #444);
}

body.dark-theme .dsp-domain-card:hover {
    border-color: var(--theme-color, #5a9fd4);
    box-shadow: 0 4px 12px rgba(90, 159, 212, 0.15);
}

body.dark-theme .dsp-domain-name a,
body.dark-theme .dsp-table-action,
body.dark-theme .dsp-seller-link {
    color: var(--theme-color, #5a9fd4);
}

body.dark-theme .dsp-domain-name a:hover,
body.dark-theme .dsp-table-action:hover,
body.dark-theme .dsp-seller-link:hover {
    color: var(--focus-color, #7bbde5);
}

body.dark-theme .dsp-form-group label {
    color: var(--muted-color, #aaa);
}

body.dark-theme .dsp-form-group input,
body.dark-theme .dsp-form-group select,
body.dark-theme .dsp-form-group textarea,
body.dark-theme .dsp-buyer-id {
    background: var(--body-bg-color, #1e1e1e);
    border-color: var(--main-border-color, #444);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-info-label {
    background: var(--muted-bg-color, #333);
    color: var(--muted-color, #aaa);
}

body.dark-theme .dsp-info-value {
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-table th,
body.dark-theme .dsp-domain-table th {
    background: var(--muted-bg-color, #333);
    color: var(--key-color, #f0f0f0);
}

body.dark-theme .dsp-table td,
body.dark-theme .dsp-domain-table td,
body.dark-theme .dsp-table th,
body.dark-theme .dsp-domain-table th {
    border-color: var(--main-border-color, #444);
}

body.dark-theme .dsp-domain-table tr:hover {
    background: var(--muted-bg-color, #333);
}

body.dark-theme .dsp-btn-secondary {
    background: var(--main-bg-color, #2a2a2a);
    border-color: var(--main-border-color, #444);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-btn-secondary:hover {
    background: var(--muted-bg-color, #333);
}

body.dark-theme .dsp-tab,
body.dark-theme .dsp-main-tab {
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-tab:hover,
body.dark-theme .dsp-main-tab:hover {
    border-color: var(--theme-color, #5a9fd4);
    color: var(--theme-color, #5a9fd4);
}

body.dark-theme .dsp-tab.active,
body.dark-theme .dsp-main-tab.active,
body.dark-theme .dsp-btn-primary,
body.dark-theme .dsp-domain-actions .dsp-btn-primary {
    background: var(--theme-color, #5a9fd4);
    border-color: var(--theme-color, #5a9fd4);
    color: white;
}

body.dark-theme .dsp-pagination a {
    background: var(--main-bg-color, #2a2a2a);
    border-color: var(--main-border-color, #444);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-pagination a:hover {
    background: var(--theme-color, #5a9fd4);
    border-color: var(--theme-color, #5a9fd4);
    color: white;
}

body.dark-theme .dsp-price-value,
body.dark-theme .dsp-price-highlight {
    color: #ff6b6b;
}

body.dark-theme .dsp-type-tag,
body.dark-theme .dsp-whois-badge {
    background: var(--muted-bg-color, #333);
    color: var(--theme-color, #5a9fd4);
}

body.dark-theme .dsp-success,
body.dark-theme .dsp-error,
body.dark-theme .dsp-warning,
body.dark-theme .dsp-pending-badge,
body.dark-theme .dsp-modal-close:hover {
    opacity: 0.9;
}

body.dark-theme .dsp-modal-overlay,
body.dark-theme .dsp-transfer-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-theme .dsp-modal-header,
body.dark-theme .dsp-modal-footer {
    background: var(--muted-bg-color, #333);
    border-color: var(--main-border-color, #444);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-modal-header h3 {
    color: var(--key-color, #f0f0f0);
}

body.dark-theme .dsp-filter-group label {
    color: var(--muted-color, #aaa);
}

body.dark-theme .dsp-filter-group input,
body.dark-theme .dsp-filter-group select {
    background: var(--body-bg-color, #1e1e1e);
    border-color: var(--main-border-color, #444);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-filter-btn {
    background: var(--theme-color, #5a9fd4);
    border-color: var(--theme-color, #5a9fd4);
}

body.dark-theme .dsp-filter-btn:hover {
    background: var(--focus-color, #4a8fc4);
}

body.dark-theme .dsp-form-hint {
    color: var(--muted-2-color, #999);
}

body.dark-theme .dsp-verification-details code,
body.dark-theme .dsp-account-value {
    background: var(--body-bg-color, #1e1e1e);
    color: var(--theme-color, #5a9fd4);
}

body.dark-theme .dsp-checkbox-label input[type="checkbox"] {
    background: var(--body-bg-color, #1e1e1e);
    border-color: var(--main-border-color, #555);
}

body.dark-theme .dsp-checkbox-label input[type="checkbox"]:checked {
    background: var(--theme-color, #5a9fd4);
    border-color: var(--theme-color, #5a9fd4);
}

body.dark-theme .dsp-modal-close {
    color: var(--muted-color, #999);
}

body.dark-theme .dsp-modal-close:hover {
    background: var(--muted-bg-color, #333);
    color: var(--main-color, #e0e0e0);
}

/* 新增:缩小的价格模块样式 */
.dsp-price-module {
    background: #f8fafc;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dsp-price-module .dsp-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dsp-price-module .dsp-price-label {
    color: #888;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dsp-price-module .dsp-price-value {
    color: #dc3545;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.dsp-price-module .dsp-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.dsp-price-module .dsp-status.pending {
    background: #fff3cd;
    color: #856404;
}

.dsp-price-module .dsp-status.approved {
    background: #d4edda;
    color: #155724;
}

.dsp-price-module .dsp-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.dsp-price-module .dsp-status.sold {
    background: #d1ecf1;
    color: #0c5460;
}

body.dark-theme .dsp-price-module {
    background: var(--muted-bg-color, #333);
    border-color: var(--main-border-color, #444);
}

body.dark-theme .dsp-price-module .dsp-price-label {
    color: var(--muted-2-color, #999);
}

body.dark-theme .dsp-price-module .dsp-status.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

body.dark-theme .dsp-price-module .dsp-status.approved {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

body.dark-theme .dsp-price-module .dsp-status.rejected {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

body.dark-theme .dsp-price-module .dsp-status.sold {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

/* 新增:域名信息区 (域名属性 + 安全检测) */
.dsp-domain-info-section {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
}

.dsp-domain-info-row {
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
}

.dsp-domain-info-row:not(:last-child) {
    border-bottom: 1px dashed #eee;
}

.dsp-domain-info-row .dsp-info-label {
    color: #333;
    font-weight: 600;
    margin-right: 12px;
    white-space: nowrap;
    min-width: 70px;
    background: none;
    padding: 0;
    margin: 0 12px 0 0;
}

.dsp-domain-info-row .dsp-info-value {
    color: #555;
    flex: 1;
    display: block;
    align-items: normal;
    padding: 0;
}

.dsp-info-tip {
    color: #999;
    font-size: 12px;
    display: inline-block;
    margin-left: 6px;
}

.dsp-detection-link {
    color: var(--theme-color, #007bff);
    text-decoration: none;
    margin: 0 4px;
    font-size: 13px;
}

.dsp-detection-link:hover {
    text-decoration: underline;
    color: var(--focus-color, #0056b3);
}

body.dark-theme .dsp-domain-info-section {
    background: var(--main-bg-color, #2a2a2a);
    border-color: var(--main-border-color, #444);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-domain-info-row {
    border-color: var(--main-border-color, #444);
}

body.dark-theme .dsp-domain-info-row .dsp-info-label {
    color: var(--key-color, #f0f0f0);
    background: transparent;
}

body.dark-theme .dsp-domain-info-row .dsp-info-value {
    color: var(--muted-color, #bbb);
}

body.dark-theme .dsp-info-tip {
    color: var(--muted-3-color, #888);
}

body.dark-theme .dsp-detection-link {
    color: var(--theme-color, #5a9fd4);
}

body.dark-theme .dsp-detection-link:hover {
    color: var(--focus-color, #7bbde5);
}

/* 新增:联系方式展示模块 */
.dsp-contact-module {
    background: #f0f8ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 13px;
}

.dsp-contact-module h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #1e40af;
    font-weight: 600;
}

.dsp-contact-module .dsp-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.dsp-contact-module .dsp-contact-item {
    color: #333;
    font-size: 13px;
}

.dsp-contact-module .dsp-contact-item .dsp-contact-label {
    color: #666;
    font-weight: 500;
    margin-right: 4px;
}

.dsp-contact-login-hint {
    color: #888;
    font-size: 13px;
}

.dsp-contact-login-hint a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.dsp-contact-login-hint a:hover {
    text-decoration: underline;
}

body.dark-theme .dsp-contact-module {
    background: rgba(90, 159, 212, 0.08);
    border-color: var(--main-border-color, #444);
}

body.dark-theme .dsp-contact-module h4 {
    color: var(--theme-color, #5a9fd4);
}

body.dark-theme .dsp-contact-module .dsp-contact-item {
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-contact-module .dsp-contact-item .dsp-contact-label {
    color: var(--muted-color, #aaa);
}

body.dark-theme .dsp-contact-login-hint {
    color: var(--muted-2-color, #999);
}

body.dark-theme .dsp-contact-login-hint a {
    color: var(--theme-color, #5a9fd4);
}

/* 卖家信息区内部联系方式小模块 */
.dsp-seller-inline-contact {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

body.dark-theme .dsp-seller-inline-contact {
    background: var(--muted-bg-color, #333);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-seller-inline-contact a {
    color: var(--theme-color, #5a9fd4);
}

/* 发布流程说明模块 */
.dsp-guide-box {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f0f8ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
}

.dsp-guide-box h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1e40af;
    font-weight: 600;
}

.dsp-guide-box ol {
    margin: 0 0 10px 0;
    padding-left: 20px;
}

.dsp-guide-box li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.dsp-guide-box p {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #666;
}

/* 卖家联系方式选择器 - 继承标准 dsp-form-group 样式 */
.dsp-contact-selector {
    margin-top: 8px;
}

.dsp-contact-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
}

.dsp-contact-row:last-child {
    margin-bottom: 0;
}

/* 联系方式类型选择框: 固定宽度，继承 dsp-form-group 样式 */
.dsp-contact-type {
    flex: 0 0 140px !important;
    width: 140px !important;
}

/* 联系方式输入框: 占据剩余宽度 */
.dsp-contact-input {
    flex: 1;
}

/* 在移动端自适应: 窄屏时类型选择框更窄 */
@media (max-width: 480px) {
    .dsp-contact-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dsp-contact-type {
        flex: 1 !important;
        width: 100% !important;
    }
}

/* ===== 卖家交易信息布局:文字在前,数字在后 (一行显示) ===== */
.dsp-seller-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.dsp-seller-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dsp-seller-stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.dsp-seller-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
}

body.dark-theme .dsp-seller-stat {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    border: 1px solid var(--main-border-color, #444);
}

body.dark-theme .dsp-seller-stat-label {
    color: var(--muted-color, #bbb);
}

body.dark-theme .dsp-seller-stat-value {
    color: var(--theme-color, #5a9fd4);
}

/* ===== 安全检测弹窗 ===== */
.dsp-detection-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dsp-detection-popup {
    background: white;
    border-radius: 12px;
    min-width: 380px;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.dsp-detection-popup-header {
    padding: 18px 24px;
    background: linear-gradient(135deg,#007bff,#0056b3);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dsp-detection-popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.dsp-detection-close {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    opacity: 0.9;
    background: transparent;
    border: none;
    color: white;
    padding: 0;
}

.dsp-detection-close:hover {
    opacity: 1;
}

.dsp-detection-popup-body {
    padding: 24px;
}

.dsp-detection-domain {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.dsp-detection-domain strong {
    color: #007bff;
    font-size: 15px;
}

.dsp-detection-loading {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 13px;
}

.dsp-detection-result {
    margin-top: 10px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

.dsp-detection-result a {
    color: #007bff;
    text-decoration: underline;
}

.dsp-detection-actions {
    margin-top: 18px;
    text-align: center;
}

.dsp-detection-btn {
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.dsp-detection-btn:hover {
    background: #0056b3;
}

body.dark-theme .dsp-detection-popup {
    background: var(--main-bg-color, #2a2a2a);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-detection-popup-body {
    background: var(--main-bg-color, #2a2a2a);
}

body.dark-theme .dsp-detection-domain {
    color: var(--muted-color, #bbb);
}

body.dark-theme .dsp-detection-result {
    background: var(--muted-bg-color, #333);
    color: var(--muted-color, #bbb);
    border: 1px solid var(--main-border-color, #444);
}

/* ========== DNS Resolver Frontend Styles ========== */

.dsp-dns-page {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dsp-page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.dsp-page-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dsp-page-title .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #2271b1;
}

.dsp-page-desc {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Flow Steps */
.dsp-flow-steps {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border-radius: 12px;
    border: 1px solid #e3efff;
    flex-wrap: wrap;
}

.dsp-flow-step {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 8px;
    transition: all 0.3s;
    opacity: 0.5;
}

.dsp-flow-step.active {
    opacity: 1;
}

.dsp-flow-step.done {
    background: rgba(34,193,195,0.1);
}

.dsp-flow-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dsp-flow-step.active .dsp-flow-num {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 12px rgba(102,126,234,0.35);
}

.dsp-flow-step.done .dsp-flow-num {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    box-shadow: 0 4px 12px rgba(17,153,142,0.35);
}

.dsp-flow-text {
    min-width: 0;
}

.dsp-flow-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.dsp-flow-sub {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    line-height: 1.3;
}

.dsp-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ccc;
    padding: 0 4px;
    flex-shrink: 0;
}

.dsp-flow-arrow.active {
    color: #22b573;
    font-weight: 700;
}

/* Service Panel */
.dsp-service-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 14px;
    margin-bottom: 28px;
    border: 2px solid #eee;
    background: #fafafa;
    flex-wrap: wrap;
}

.dsp-service-none {
    background: linear-gradient(135deg, #fff8e7 0%, #fff0d6 100%);
    border-color: #ffe0a8;
}

.dsp-service-pending {
    background: linear-gradient(135deg, #fff9e6 0%, #fff4cc 100%);
    border-color: #ffe58f;
}

.dsp-service-approved {
    background: linear-gradient(135deg, #e8fff0 0%, #d5ffe4 100%);
    border-color: #95f0b5;
}

.dsp-service-approved_noapi {
    background: linear-gradient(135deg, #fff7e6 0%, #ffefc2 100%);
    border-color: #ffd666;
}

.dsp-service-rejected {
    background: linear-gradient(135deg, #fff0f0 0%, #ffd9d9 100%);
    border-color: #ffb3b3;
}

.dsp-service-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.dsp-service-icon-wrap {
    flex-shrink: 0;
}

.dsp-svc-ic {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.dsp-svc-ic .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.dsp-svc-ic-new {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    color: #d2691e;
}

.dsp-svc-ic-wait {
    background: linear-gradient(135deg, #fff3b0, #ffda6b);
    color: #b8860b;
}

.dsp-svc-ic-ok {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #2e8b57;
}

.dsp-svc-ic-no {
    background: linear-gradient(135deg, #ffdde1, #ee9ca7);
    color: #c0392b;
}

.dsp-service-detail {
    flex: 1;
    min-width: 0;
}

.dsp-svc-toprow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.dsp-svc-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.dsp-svc-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.dsp-svc-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
    word-break: break-all;
}

.dsp-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.dsp-tag-info {
    background: #e6f4ff;
    color: #1677ff;
    border: 1px solid #91caff;
}

.dsp-tag-wait {
    background: #fffbe6;
    color: #d48806;
    border: 1px solid #ffe58f;
}

.dsp-tag-ok {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.dsp-tag-no {
    background: #fff2f0;
    color: #cf1322;
    border: 1px solid #ffccc7;
}

.dsp-service-right {
    flex-shrink: 0;
}

.dsp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.dsp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dsp-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

.dsp-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.dsp-btn-lg {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 10px;
}

.dsp-btn-lg .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dsp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    box-shadow: 0 3px 10px rgba(102,126,234,0.35);
}

.dsp-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653d8f 100%);
}

.dsp-btn-gray {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.dsp-btn-gray:hover {
    background: #eeeeee;
    color: #333;
}

.dsp-btn-red {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.dsp-btn-red:hover {
    background: #fed7d7;
    color: #9b2c2c;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dsp-btn-red:disabled,.dsp-btn-primary:disabled,.dsp-btn-gray:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dsp-text-muted {
    color: #999;
    font-size: 12px;
}

.dsp-count-badge {
    display: inline-block;
    padding: 1px 8px;
    background: #eef0f3;
    color: #555;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
}

.dsp-count-ok {
    background: #e6fff1;
    color: #1a7f3d;
}

.dsp-count-no {
    background: #ffe9e9;
    color: #b54040;
}

.dsp-search-row .dsp-btn-sm {
    padding: 5px 10px !important;
    font-size: 12px;
}

.dsp-search-row input[type="text"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.12);
}

.dsp-btn-outline {
    background: transparent;
    border: 1px solid #2271b1;
    color: #2271b1;
}

.dsp-btn-outline:hover {
    background: #2271b1;
    color: #fff;
}

.dsp-btn-outline-gray {
    background: transparent;
    border: 1px solid #bbb;
    color: #888;
}

.dsp-green { color: #2e8b57; font-weight: 600; }
.dsp-red { color: #c0392b; font-weight: 600; }
.dsp-orange { color: #e67e22; font-weight: 600; }
.dsp-blue { color: #2271b1; font-weight: 600; }

/* Domain Panel */
.dsp-domain-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}

.dsp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(to right, #fafbff, #fff);
    flex-wrap: wrap;
    gap: 12px;
}

.dsp-panel-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.dsp-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.dsp-panel-title .dashicons {
    color: #2271b1;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.dsp-panel-tabs {
    display: flex;
    gap: 4px;
    background: #f4f6fa;
    border-radius: 8px;
    padding: 4px;
    flex-wrap: wrap;
}

.dsp-ptab {
    padding: 6px 14px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.dsp-ptab:hover {
    background: #fff;
    color: #333;
}

.dsp-ptab.active {
    background: #fff;
    color: #2271b1;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dsp-count-badge {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0 7px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.dsp-count-ok {
    background: #d4edda;
    color: #155724;
}

.dsp-count-no {
    background: #f8d7da;
    color: #721c24;
}

.dsp-panel-actions {
    flex-shrink: 0;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-w { background: #f0ad4e; }
.dot-g { background: #5cb85c; }
.dot-r { background: #d9534f; }

/* Domain Sections */
.dsp-domain-section {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.dsp-domain-section:last-child {
    border-bottom: none;
}

.dsp-sec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.dsp-sec-sub {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-left: 6px;
}

.dsp-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 8px;
    border: 1px solid #eef0f3;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    position: relative;
    width: 100%;
}

.dsp-table-wrap::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.dsp-table-wrap::-webkit-scrollbar-thumb {
    background: #c9cdd4;
    border-radius: 3px;
}

.dsp-table-wrap::-webkit-scrollbar-track {
    background: #f5f6f8;
}

.dsp-list-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #fff;
    table-layout: auto;
}

.dsp-list-table thead th {
    background: #f9fafb;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.dsp-list-table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    white-space: nowrap;
}

.dsp-action-group {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

.dsp-list-table tbody tr:last-child td {
    border-bottom: none;
}

.dsp-list-table tbody tr:hover {
    background: #fafbfc;
}

.dsp-domain-cell {
    font-weight: 600;
}

.dsp-domain-name {
    color: #1a1a1a;
}

.dsp-reg-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: #f0f7ff;
    color: #2271b1;
    border: 1px solid #d0e4ff;
}

.dsp-target-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, #fff4e6, #ffe8cc);
    color: #d9822b;
    border: 1px solid #ffd7a8;
}

.dsp-time-cell,
.dsp-remark-cell {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
}

.dsp-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.dsp-st-wait {
    background: #fff7e6;
    color: #d48806;
}

.dsp-st-ok {
    background: #f6ffed;
    color: #389e0d;
}

.dsp-st-no {
    background: #fff2f0;
    color: #cf1322;
}

.dsp-st-publish {
    background: #e6f7ff;
    color: #0958d9;
}

.dsp-action-btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    margin-right: 4px;
    display: inline-block;
}

.dsp-action-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

.dsp-abort-btn {
    color: #d9534f;
    border-color: #f5c6cb;
}

.dsp-abort-btn:hover {
    background: #fff5f5;
    color: #c9302c;
}

.dsp-del-btn {
    color: #d9534f;
    border-color: #f5c6cb;
}

.dsp-del-btn:hover {
    background: #fff5f5;
    color: #c9302c;
}

.dsp-manage-btn {
    color: #2271b1;
    border-color: #bcd7f0;
}

.dsp-manage-btn:hover {
    background: #f0f6ff;
    color: #166099;
}

.dsp-publish-btn {
    color: #28a745;
    border-color: #b6e2c0;
}

.dsp-publish-btn:hover {
    background: #f0fff4;
    color: #218838;
}

/* Modals / Dialogs */
.dsp-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 20px;
    animation: dspMaskFadeIn 0.2s ease-out;
}

@keyframes dspMaskFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dsp-dialog {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    animation: dspDialogSlideIn 0.25s ease-out;
}

.dsp-dlg-lg {
    max-width: 920px;
}

@keyframes dspDialogSlideIn {
    from { opacity: 0; transform: translateY(-25px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dsp-dlg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    background: linear-gradient(135deg, #fafbff, #f0f4ff);
    border-bottom: 1px solid #eaeef5;
    flex-shrink: 0;
}

.dsp-dlg-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.dsp-dlg-ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsp-dlg-ic-blue {
    background: linear-gradient(135deg, #c7e0ff, #9ec5ff);
    color: #1e5fc0;
}

.dsp-dlg-ic-green {
    background: linear-gradient(135deg, #bff0cf, #8ce0a6);
    color: #238a4b;
}

.dsp-dlg-ic .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.dsp-dlg-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s;
}

.dsp-dlg-close:hover {
    background: #fff5f5;
    color: #e53e3e;
    border-color: #ffc9c9;
}

.dsp-dlg-body {
    padding: 26px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.dsp-dlg-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 26px;
    background: #fafbfc;
    border-top: 1px solid #eaeef5;
    flex-shrink: 0;
}

/* Notice Box */
.dsp-notice-box {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    border: 1px solid transparent;
}

.dsp-notice-info {
    background: #e6f4ff;
    border-color: #91caff;
}

.dsp-notice-warn {
    background: #fffbe6;
    border-color: #ffe58f;
}

.dsp-notice-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,0.6);
}

.dsp-notice-info .dsp-notice-ic {
    color: #1677ff;
}

.dsp-notice-warn .dsp-notice-ic {
    color: #d48806;
}

.dsp-notice-ic .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dsp-notice-c {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.7;
}

.dsp-notice-c strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.dsp-ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.dsp-ul li {
    margin-bottom: 4px;
    line-height: 1.6;
}

/* Form */
.dsp-form {
    width: 100%;
}

.dsp-form-row {
    margin-bottom: 18px;
}

.dsp-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.req {
    color: #e53e3e;
    margin-left: 2px;
}

.dsp-input,
.dsp-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}

.dsp-input-lg {
    padding: 12px 16px;
    font-size: 14px;
}

.dsp-input:focus,
.dsp-select:focus,
.dsp-textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.1);
    background: #fff;
}

.dsp-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    font-family: inherit;
}

.dsp-input-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.dsp-form-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dsp-form-col {
    min-width: 0;
}

/* Registrar Grid */
.dsp-registrar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dsp-reg-card {
    margin: 0;
    cursor: pointer;
}

.dsp-reg-card input[type="radio"] {
    display: none;
}

.dsp-reg-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid #eef0f3;
    border-radius: 10px;
    background: #fafbfc;
    transition: all 0.2s;
    text-align: center;
}

.dsp-reg-card-inner:hover {
    border-color: #bcd7f0;
    background: #f5faff;
}

.dsp-reg-card input[type="radio"]:checked + .dsp-reg-card-inner {
    border-color: #2271b1;
    background: #eaf3fd;
    box-shadow: 0 3px 8px rgba(34,113,177,0.15);
}

.dsp-reg-ic {
    font-size: 22px;
    line-height: 1;
}

.dsp-reg-name {
    font-size: 12px;
    font-weight: 500;
    color: #444;
}

.dsp-reg-card input[type="radio"]:checked + .dsp-reg-card-inner .dsp-reg-name {
    color: #2271b1;
    font-weight: 600;
}

/* DNS Toolbar */
.dsp-dns-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8faff;
    border-radius: 10px;
    border: 1px solid #e1ebff;
    flex-wrap: wrap;
}

.dsp-dns-summary {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.dsp-add-dnsrec-btn {
    padding: 6px 14px;
    font-size: 12px;
}

.dsp-loading-row {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.dsp-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #e6eaf0;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: dspSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes dspSpin {
    to { transform: rotate(360deg); }
}

/* DNS Records Table overrides */
#dsp-dns-records-box .dsp-list-table {
    margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
    .dsp-dns-page {
        padding: 18px;
    }
    .dsp-flow-steps {
        padding: 14px;
    }
    .dsp-flow-arrow {
        display: none;
    }
    .dsp-flow-step {
        min-width: calc(50% - 8px);
    }
    .dsp-service-panel {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
    .dsp-service-right {
        width: 100%;
    }
    .dsp-service-right .dsp-btn {
        width: 100%;
    }
    .dsp-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .dsp-panel-actions {
        width: 100%;
    }
    .dsp-panel-actions .dsp-btn {
        width: 100%;
    }
    .dsp-registrar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dsp-form-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dsp-page-title {
        font-size: 20px;
    }
    .dsp-flow-step {
        min-width: 100%;
    }
    .dsp-registrar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dsp-dlg-head {
        padding: 16px 20px;
    }
    .dsp-dlg-body {
        padding: 20px;
    }
    .dsp-dlg-foot {
        padding: 14px 20px;
    }
    .dsp-domain-section {
        padding: 16px;
    }
    .dsp-list-table {
        font-size: 12px;
        min-width: 740px;
    }
    .dsp-list-table thead th,
    .dsp-list-table tbody td {
        padding: 10px 8px;
    }
}

/* Dark Theme for DNS */
body.dark-theme .dsp-dns-page {
    background: var(--main-bg-color, #2a2a2a);
    color: var(--main-color, #e0e0e0);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

body.dark-theme .dsp-page-title {
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-flow-steps {
    background: var(--muted-bg-color, #333);
    border-color: var(--main-border-color, #444);
}

body.dark-theme .dsp-flow-title {
    color: var(--main-color, #ddd);
}

body.dark-theme .dsp-flow-sub {
    color: var(--muted-color, #999);
}

body.dark-theme .dsp-service-panel {
    background: var(--muted-bg-color, #333);
    border-color: var(--main-border-color, #444);
}

body.dark-theme .dsp-svc-title,
body.dark-theme .dsp-svc-desc {
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-domain-panel,
body.dark-theme .dsp-panel-head,
body.dark-theme .dsp-dlg-head,
body.dark-theme .dsp-dlg-foot {
    background: var(--muted-bg-color, #333);
    border-color: var(--main-border-color, #444);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-dlg-head,
body.dark-theme .dsp-dlg-foot {
    background: #333;
}

body.dark-theme .dsp-dialog,
body.dark-theme .dsp-dns-toolbar,
body.dark-theme .dsp-form input,
body.dark-theme .dsp-form select,
body.dark-theme .dsp-form textarea,
body.dark-theme .dsp-list-table,
body.dark-theme .dsp-notice-c,
body.dark-theme .dsp-notice-c strong {
    color: var(--main-color, #e0e0e0);
    background: var(--main-bg-color, #2a2a2a);
    border-color: var(--main-border-color, #444);
}

body.dark-theme .dsp-list-table thead th {
    background: var(--muted-bg-color, #333);
    color: var(--muted-color, #bbb);
    border-color: var(--main-border-color, #444);
}

body.dark-theme .dsp-list-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

body.dark-theme .dsp-panel-tabs {
    background: var(--muted-bg-color, #333);
}

body.dark-theme .dsp-ptab {
    color: var(--muted-color, #bbb);
}

body.dark-theme .dsp-ptab.active {
    background: var(--main-bg-color, #2a2a2a);
    color: #91caff;
}

body.dark-theme .dsp-form-label,
body.dark-theme .dsp-sec-title,
body.dark-theme .dsp-dlg-title {
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-input:focus,
body.dark-theme .dsp-select:focus,
body.dark-theme .dsp-textarea:focus {
    background: var(--main-bg-color, #2a2a2a);
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .dsp-dns-summary {
    color: var(--muted-color, #bbb);
}

/* ============ 深度暗黑模式修复 + 手机端优化 ============ */

/* 兼容子比主题多种夜间模式 class */
body.dark-theme,
body.wp-dark-mode,
body.dark,
body.theme-dark,
[data-theme="dark"] {
    --dsp-bg: #2a2a2a;
    --dsp-bg-2: #333;
    --dsp-bg-3: #1e1e1e;
    --dsp-border: #444;
    --dsp-text: #e0e0e0;
    --dsp-text-2: #bbb;
    --dsp-text-3: #999;
}

/* ---------- dsp-list-table 表格行暗黑模式修复(核心修复截图问题) ---------- */
body.dark-theme .dsp-list-table,
body.dark .dsp-list-table {
    background: var(--dsp-bg, #2a2a2a) !important;
    color: var(--dsp-text, #e0e0e0);
    border: 1px solid var(--dsp-border, #444);
    border-radius: 10px;
    overflow: hidden;
}

body.dark-theme .dsp-list-table thead th,
body.dark .dsp-list-table thead th {
    background: var(--dsp-bg-2, #333) !important;
    color: var(--dsp-text-2, #bbb) !important;
    border-bottom: 1px solid var(--dsp-border, #444) !important;
}

body.dark-theme .dsp-list-table tbody td,
body.dark .dsp-list-table tbody td {
    background: var(--dsp-bg, #2a2a2a) !important;
    color: var(--dsp-text, #e0e0e0) !important;
    border-bottom: 1px solid var(--dsp-border, #444) !important;
}

body.dark-theme .dsp-list-table tbody tr:hover td,
body.dark .dsp-list-table tbody tr:hover td {
    background: var(--dsp-bg-2, #333) !important;
}

/* 表格内特殊元素暗黑修复 */
body.dark-theme .dsp-domain-name,
body.dark .dsp-domain-name { color: var(--dsp-text, #e0e0e0); }

body.dark-theme .dsp-domain-cell,
body.dark .dsp-domain-cell { color: var(--dsp-text, #e0e0e0); }

body.dark-theme .dsp-time-cell,
body.dark-theme .dsp-remark-cell,
body.dark .dsp-time-cell,
body.dark .dsp-remark-cell { color: var(--dsp-text-2, #bbb); }

/* ---------- 弹窗系列完整暗黑模式 ---------- */
body.dark-theme .dsp-dialog,
body.dark .dsp-dialog {
    background: var(--dsp-bg, #2a2a2a) !important;
    border: 1px solid var(--dsp-border, #444);
}

body.dark-theme .dsp-dlg-head,
body.dark .dsp-dlg-head {
    background: linear-gradient(135deg, #333 0%, #2e2e2e 100%) !important;
    border-bottom: 1px solid var(--dsp-border, #444) !important;
}

body.dark-theme .dsp-dlg-title,
body.dark .dsp-dlg-title {
    color: var(--dsp-text, #e0e0e0) !important;
}

body.dark-theme .dsp-dlg-close,
body.dark .dsp-dlg-close {
    background: var(--dsp-bg-2, #333) !important;
    border: 1px solid var(--dsp-border, #444) !important;
    color: var(--dsp-text-2, #bbb) !important;
}

body.dark-theme .dsp-dlg-close:hover,
body.dark .dsp-dlg-close:hover {
    background: #3d2a2a !important;
    border-color: #6b4444 !important;
    color: #ff8080 !important;
}

body.dark-theme .dsp-dlg-body,
body.dark .dsp-dlg-body {
    background: var(--dsp-bg, #2a2a2a) !important;
    color: var(--dsp-text, #e0e0e0);
}

body.dark-theme .dsp-dlg-foot,
body.dark .dsp-dlg-foot {
    background: var(--dsp-bg-2, #333) !important;
    border-top: 1px solid var(--dsp-border, #444) !important;
}

/* 弹窗图标暗黑 */
body.dark-theme .dsp-dlg-ic-blue,
body.dark .dsp-dlg-ic-blue {
    background: linear-gradient(135deg, #2a3d5c, #1e3a5f);
    color: #8bb8f0;
}
body.dark-theme .dsp-dlg-ic-green,
body.dark .dsp-dlg-ic-green {
    background: linear-gradient(135deg, #2a4a33, #1e3f2a);
    color: #8ce0a6;
}

/* ---------- 操作按钮暗黑模式 ---------- */
body.dark-theme .dsp-action-btn,
body.dark .dsp-action-btn {
    background: var(--dsp-bg-2, #333) !important;
    border: 1px solid var(--dsp-border, #444) !important;
    color: var(--dsp-text, #e0e0e0) !important;
}

body.dark-theme .dsp-action-btn:hover,
body.dark .dsp-action-btn:hover {
    background: #3d3d3d !important;
    border-color: #555 !important;
}

/* 删除按钮暗黑 */
body.dark-theme .dsp-del-btn,
body.dark-theme .dsp-abort-btn,
body.dark-theme .dsp-delrec-btn,
body.dark-theme .dsp-rb-delrec-btn,
body.dark .dsp-del-btn,
body.dark .dsp-abort-btn,
body.dark .dsp-delrec-btn,
body.dark .dsp-rb-delrec-btn {
    color: #ff8080 !important;
    border-color: #6b4444 !important;
    background: #3a2a2a !important;
}
body.dark-theme .dsp-del-btn:hover,
body.dark .dsp-del-btn:hover {
    background: #4d3030 !important;
    color: #ffb3b3 !important;
}

/* 管理/编辑按钮暗黑 */
body.dark-theme .dsp-manage-btn,
body.dark .dsp-manage-btn {
    color: #8bb8f0 !important;
    border-color: #3a4d6b !important;
    background: #2a3344 !important;
}
body.dark-theme .dsp-publish-btn,
body.dark .dsp-publish-btn {
    color: #8ce0a6 !important;
    border-color: #3a6b44 !important;
    background: #2a4430 !important;
}

/* ---------- 状态标签暗黑模式 ---------- */
body.dark-theme .dsp-status,
body.dark .dsp-status { opacity: 0.95; }

body.dark-theme .dsp-st-wait,
body.dark .dsp-st-wait {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
}
body.dark-theme .dsp-st-ok,
body.dark .dsp-st-ok {
    background: rgba(40,167,69,0.15);
    color: #52c41a;
}
body.dark-theme .dsp-st-no,
body.dark .dsp-st-no {
    background: rgba(220,53,69,0.15);
    color: #ff6b6b;
}
body.dark-theme .dsp-st-publish,
body.dark .dsp-st-publish {
    background: rgba(13,92,217,0.15);
    color: #69b1ff;
}

/* 域名注册商标签暗黑 */
body.dark-theme .dsp-reg-tag,
body.dark .dsp-reg-tag {
    background: rgba(34,113,177,0.15);
    border-color: #3a4d6b;
    color: #8bb8f0;
}
body.dark-theme .dsp-target-tag,
body.dark .dsp-target-tag {
    background: rgba(217,130,43,0.15);
    border-color: #6b543a;
    color: #ffb86b;
}

/* ---------- 接收账号信息区块暗黑模式 ---------- */
body.dark-theme #dsp-reg-account-info,
body.dark #dsp-reg-account-info {
    background: #2a3d2f !important;
    border: 1px solid #3a6b44 !important;
}
body.dark-theme #dsp-reg-account-info > div:first-child,
body.dark #dsp-reg-account-info > div:first-child {
    color: #8ce0a6 !important;
}
body.dark-theme #dsp-reg-account-info > div:last-child,
body.dark #dsp-reg-account-info > div:last-child {
    color: var(--dsp-text-2, #bbb) !important;
}

body.dark-theme #dsp-reg-account-empty,
body.dark #dsp-reg-account-empty {
    background: #3d2a2a !important;
    border: 1px dashed #6b4444 !important;
    color: #ff8080 !important;
}

/* ---------- DNS工具栏暗黑 ---------- */
body.dark-theme .dsp-dns-toolbar,
body.dark .dsp-dns-toolbar {
    background: var(--dsp-bg-2, #333) !important;
    border: 1px solid var(--dsp-border, #444) !important;
}
body.dark-theme .dsp-loading-row,
body.dark .dsp-loading-row {
    color: var(--dsp-text-2, #bbb);
}

/* ---------- 空容器暗黑 ---------- */
body.dark-theme .dsp-empty-wrap,
body.dark .dsp-empty-wrap,
body.dark-theme .dsp-empty-title,
body.dark .dsp-empty-title {
    color: var(--dsp-text, #e0e0e0);
}
body.dark-theme .dsp-empty-desc,
body.dark .dsp-empty-desc {
    color: var(--dsp-text-2, #bbb);
}

/* ---------- Notice提示框暗黑 ---------- */
body.dark-theme .dsp-notice-box,
body.dark .dsp-notice-box {
    background: var(--dsp-bg-2, #333) !important;
    border-color: var(--dsp-border, #444) !important;
}
body.dark-theme .dsp-notice-c,
body.dark .dsp-notice-c {
    color: var(--dsp-text, #e0e0e0) !important;
}

/* ---------- 团络云表格 checkbox暗黑 ---------- */
body.dark-theme .dsp-select-all,
body.dark-theme .dsp-rec-chk,
body.dark-theme .dsp-checkbox-label input[type="checkbox"],
body.dark .dsp-select-all,
body.dark .dsp-rec-chk,
body.dark .dsp-checkbox-label input[type="checkbox"] {
    background: var(--dsp-bg-3, #1e1e1e);
    border-color: var(--dsp-border, #444);
}

/* ---------- 手机端深度适配优化 ---------- */
@media (max-width: 768px) {
    /* DNS页面内边距减小 */
    .dsp-dns-page { padding: 14px 10px !important; }

    /* 弹窗：顶边距大幅减小，屏幕利用率更高 */
    .dsp-mask {
        padding: 8px 6px 8px !important;
    }
    .dsp-dialog {
        max-height: calc(100vh - 16px);
        border-radius: 12px;
    }
    .dsp-dlg-lg { max-width: 100% !important; }

    .dsp-dlg-head {
        padding: 14px 16px !important;
        gap: 10px;
    }
    .dsp-dlg-title {
        font-size: 15px !important;
        gap: 8px !important;
    }
    .dsp-dlg-ic {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }
    .dsp-dlg-ic .dashicons {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
    }
    .dsp-dlg-close {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        font-size: 18px !important;
    }
    .dsp-dlg-body {
        padding: 16px !important;
    }
    .dsp-dlg-foot {
        padding: 12px 16px !important;
        flex-wrap: wrap;
    }
    .dsp-dlg-foot .dsp-btn {
        flex: 1 1 45%;
        padding: 11px 14px !important;
    }

    /* DNS工具条：按钮自动换行，更易用 */
    .dsp-dns-toolbar {
        padding: 10px !important;
        gap: 8px !important;
    }
    .dsp-dns-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .dsp-dns-toolbar .dsp-btn {
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
    .dsp-add-dnsrec-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* 域名表格按钮：保持横向排列，配合整体横向滚动 */
    .dsp-list-table .dsp-action-btn {
        display: inline-flex !important;
        width: auto !important;
        margin: 0 3px !important;
        padding: 6px 10px !important;
        vertical-align: middle;
    }
    .dsp-list-table .dsp-action-btn.dsp-btn-selling {
        background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%) !important;
        color: #166534 !important;
        border-color: #86efac !important;
        cursor: default !important;
        opacity: 1 !important;
    }
    .dsp-action-group {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }
    .dsp-domain-name-cell {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    /* 表单更紧凑 */
    .dsp-form-row { margin-bottom: 14px !important; }
    .dsp-form-label { font-size: 12px !important; margin-bottom: 6px !important; }
    .dsp-input, .dsp-select, .dsp-textarea {
        padding: 9px 11px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }
    .dsp-input-lg { padding: 10px 12px !important; }
    .dsp-form-cols { gap: 10px !important; }

    /* 注册商选择卡片在手机端增大 */
    .dsp-registrar-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .dsp-reg-card-inner {
        padding: 14px 10px !important;
    }
    .dsp-reg-name { font-size: 13px !important; }

    /* 主Tab按钮手机端：强制三个标签一行居中显示，等宽填满 */
    .dsp-main-tabs {
        gap: 6px !important;
        padding-bottom: 6px !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    .dsp-main-tab {
        padding: 8px 10px !important;
        font-size: 13px !important;
        flex: 1 1 0 !important;
        text-align: center !important;
        min-width: 0 !important;
        max-width: 33.333% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* 在更小屏幕(<=480px)更极端的优化 */
@media (max-width: 480px) {
    .dsp-mask { padding: 4px 4px 4px !important; }
    .dsp-dialog {
        border-radius: 10px;
        max-height: calc(100vh - 8px);
    }
    .dsp-dlg-head { padding: 12px 12px !important; }
    .dsp-dlg-title { font-size: 14px !important; }
    .dsp-dlg-body { padding: 12px !important; }
    .dsp-dlg-foot { padding: 10px 12px !important; }
    .dsp-dlg-foot .dsp-btn {
        flex: 1 1 100%;
    }

    /* 表格操作列：按钮最小化，适配窄屏（保持横向排列） */
    .dsp-list-table {
        font-size: 11px !important;
        min-width: 700px !important;
    }
    .dsp-list-table thead th,
    .dsp-list-table tbody td {
        padding: 8px 6px !important;
        font-size: 11px !important;
    }
    .dsp-list-table .dsp-action-btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
        display: inline-flex !important;
        width: auto !important;
        margin: 0 2px !important;
    }
    .dsp-list-table .dsp-action-btn.dsp-btn-selling {
        background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%) !important;
        color: #166534 !important;
        border-color: #86efac !important;
        cursor: default !important;
        opacity: 1 !important;
    }
    .dsp-action-group {
        gap: 2px !important;
    }

    .dsp-registrar-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 域名市场筛选按钮占满整行 */
    .dsp-filter-btn {
        width: 100%;
        margin-top: 4px;
    }

    /* 五个子Tab在更小屏幕也强制一行等宽显示 */
    .dsp-tabs {
        gap: 3px !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    .dsp-tabs .dsp-tab {
        padding: 6px 2px !important;
        font-size: 10px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 20% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.3 !important;
    }

    /* 三个主Tab在<=480px也强制一行 */
    .dsp-main-tabs .dsp-main-tab {
        padding: 7px 4px !important;
        font-size: 12px !important;
    }
}

/* 横屏小平板特殊优化 */
@media (max-width: 900px) and (orientation: landscape) {
    .dsp-mask { padding: 10px !important; }
    .dsp-dialog { max-height: calc(100vh - 20px); }
}

/* ---------- 补充：按钮/计数/购买弹窗 暗黑适配 ---------- */
body.dark-theme .dsp-btn-gray,
body.dark .dsp-btn-gray {
    background: #3a3a3a !important;
    border-color: #555 !important;
    color: #ccc !important;
}
body.dark-theme .dsp-btn-gray:hover,
body.dark .dsp-btn-gray:hover {
    background: #444 !important;
    color: #fff !important;
}

body.dark-theme .dsp-btn-red,
body.dark .dsp-btn-red {
    background: #3d2a2a !important;
    border-color: #6b4444 !important;
    color: #ff8080 !important;
}
body.dark-theme .dsp-btn-red:hover,
body.dark .dsp-btn-red:hover {
    background: #4d3030 !important;
    color: #ffb3b3 !important;
}

body.dark-theme .dsp-btn-outline,
body.dark .dsp-btn-outline {
    border-color: #5a8fc7 !important;
    color: #8bb8f0 !important;
    background: transparent !important;
}
body.dark-theme .dsp-btn-outline:hover,
body.dark .dsp-btn-outline:hover {
    background: #2271b1 !important;
    color: #fff !important;
}

/* 计数徽章暗黑 */
body.dark-theme .dsp-count-badge,
body.dark .dsp-count-badge {
    background: #3a3a3a !important;
    color: #ccc !important;
}
body.dark-theme .dsp-count-ok,
body.dark .dsp-count-ok {
    background: rgba(40,167,69,0.15) !important;
    color: #8ce0a6 !important;
}
body.dark-theme .dsp-count-no,
body.dark .dsp-count-no {
    background: rgba(220,53,69,0.15) !important;
    color: #ff8080 !important;
}

body.dark-theme .dsp-text-muted,
body.dark .dsp-text-muted { color: var(--dsp-text-3, #999) !important; }

/* 搜索框和筛选暗黑 */
body.dark-theme .dsp-search-row,
body.dark .dsp-search-row {
    background: var(--dsp-bg-2, #333) !important;
    border-color: var(--dsp-border, #444) !important;
}
body.dark-theme .dsp-search-row input[type="text"],
body.dark .dsp-search-row input[type="text"],
body.dark-theme .dsp-search-row select,
body.dark .dsp-search-row select {
    background: var(--dsp-bg, #2a2a2a) !important;
    border-color: var(--dsp-border, #444) !important;
    color: var(--dsp-text, #e0e0e0) !important;
}
body.dark-theme .dsp-search-row input[type="text"]:focus,
body.dark .dsp-search-row input[type="text"]:focus {
    border-color: #5a8fc7 !important;
}

/* 表格包装暗黑 */
body.dark-theme .dsp-table-wrap,
body.dark .dsp-table-wrap,
body.dark-theme .dsp-table-wrapper,
body.dark .dsp-table-wrapper,
body.dark-theme .dsp-domain-table-wrapper,
body.dark .dsp-domain-table-wrapper {
    background: var(--dsp-bg, #2a2a2a) !important;
    border-color: var(--dsp-border, #444) !important;
}

/* 购买模态框暗黑 */
body.dark-theme .dsp-buy-modal,
body.dark .dsp-buy-modal {
    background: var(--dsp-bg, #2a2a2a) !important;
    border-color: var(--dsp-border, #444) !important;
}
body.dark-theme .dsp-buy-modal .dsp-buy-cancel,
body.dark .dsp-buy-modal .dsp-buy-cancel {
    background: #3a3a3a !important;
    border-color: #555 !important;
    color: #ccc !important;
}
body.dark-theme .dsp-buy-modal .dsp-buy-price,
body.dark-theme .dsp-buy-modal h2,
body.dark-theme .dsp-buy-modal h3,
body.dark-theme .dsp-buy-modal .dsp-total-price-label,
body.dark .dsp-buy-modal .dsp-buy-price,
body.dark .dsp-buy-modal h2,
body.dark .dsp-buy-modal h3,
body.dark .dsp-buy-modal .dsp-total-price-label {
    color: var(--dsp-text, #e0e0e0) !important;
}

/* 价格模板模块暗黑 */
body.dark-theme .dsp-price-module,
body.dark .dsp-price-module {
    background: var(--dsp-bg, #2a2a2a) !important;
    border-color: var(--dsp-border, #444) !important;
}
body.dark-theme .dsp-pm-title,
body.dark .dsp-pm-title { color: var(--dsp-text, #e0e0e0) !important; }
body.dark-theme .dsp-pm-name,
body.dark-theme .dsp-pm-expire,
body.dark-theme .dsp-pm-domains-label,
body.dark .dsp-pm-name,
body.dark .dsp-pm-expire,
body.dark .dsp-pm-domains-label {
    color: var(--dsp-text-2, #bbb) !important;
}
body.dark-theme .dsp-pm-price,
body.dark .dsp-pm-price { color: #ff8080 !important; }

/* 加载/错误提示暗黑 */
body.dark-theme .dsp-loading,
body.dark .dsp-loading,
body.dark-theme .dsp-error-row,
body.dark .dsp-error-row,
body.dark-theme .dsp-success-row,
body.dark .dsp-success-row {
    color: var(--dsp-text-2, #bbb) !important;
}

/* 内嵌表单标签暗黑 */
body.dark-theme .dsp-form-label,
body.dark .dsp-form-label { color: var(--dsp-text, #e0e0e0) !important; }
body.dark-theme .dsp-input-hint,
body.dark .dsp-input-hint { color: var(--dsp-text-3, #999) !important; }

body.dark-theme .dsp-input,
body.dark-theme .dsp-select,
body.dark-theme .dsp-textarea,
body.dark .dsp-input,
body.dark .dsp-select,
body.dark .dsp-textarea {
    background: var(--dsp-bg-3, #1e1e1e) !important;
    border-color: var(--dsp-border, #444) !important;
    color: var(--dsp-text, #e0e0e0) !important;
}