* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hsd-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hsd-header {
    text-align: center;
    margin-bottom: 40px;
}

.hsd-header h1 {
    font-size: 42px;
    background: linear-gradient(135deg, #fff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.hsd-header p {
    color: #94a3b8;
}

.hsd-test-badge {
    display: inline-block;
    background: #f59e0b;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 10px;
}

.hsd-section {
    margin-bottom: 50px;
}

.hsd-section h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
}

.hsd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.hsd-card {
    background: #1a1f3a;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #2d3a5e;
    transition: all 0.2s;
}

.hsd-card:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.hsd-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hsd-card-header strong {
    font-size: 18px;
    color: #fff;
}

.hsd-status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.hsd-meta {
    color: #94a3b8;
    font-size: 13px;
    margin: 10px 0;
}

.hsd-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.hsd-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.hsd-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.hsd-btn-outline {
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.hsd-btn-primary {
    background: #f59e0b;
    width: 100%;
    padding: 12px;
}

.hsd-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.hsd-modal-content {
    background: #1a1f3a;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    border: 1px solid #2d3a5e;
    max-height: 85vh;
    overflow-y: auto;
}

.hsd-modal-header {
    padding: 20px;
    border-bottom: 1px solid #2d3a5e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hsd-modal-header h3 {
    color: #fff;
    margin: 0;
}

.hsd-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
}

.hsd-modal-close:hover {
    color: #fff;
}

.hsd-modal-tabs {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
    border-bottom: 1px solid #2d3a5e;
    flex-wrap: wrap;
}

.hsd-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.hsd-tab-btn.active {
    background: #3b82f6;
    color: #fff;
}

.hsd-modal-body {
    padding: 20px;
}

.hsd-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #2d3a5e;
    text-align: right;
}

.hsd-tab-content {
    display: block;
}

.hsd-field {
    margin-bottom: 15px;
}

.hsd-field label {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 13px;
}

.hsd-input, .hsd-select {
    width: 100%;
    padding: 10px;
    background: #0a0f2a;
    border: 1px solid #2d3a5e;
    border-radius: 8px;
    color: #fff;
}

.hsd-setting-item {
    padding: 15px 0;
    border-bottom: 1px solid #2d3a5e;
}

.hsd-setting-label {
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.hsd-setting-desc {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 8px;
}

.hsd-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.hsd-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hsd-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2d3a5e;
    border-radius: 24px;
    transition: 0.3s;
}

.hsd-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .hsd-slider {
    background-color: #3b82f6;
}

input:checked + .hsd-slider:before {
    transform: translateX(26px);
}

.hsd-price {
    font-size: 28px;
    color: #3b82f6;
    margin: 15px 0;
    text-align: center;
}

.hsd-status-msg {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.hsd-status-msg.hsd-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.hsd-status-msg.hsd-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.hsd-info-card {
    background: #0a0f2a;
    border-radius: 12px;
    padding: 20px;
}

.hsd-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2d3a5e;
}

.hsd-info-row:last-child {
    border-bottom: none;
}

.hsd-info-label {
    color: #94a3b8;
    font-weight: 500;
}

.hsd-info-value {
    color: #fff;
}

.hsd-login {
    text-align: center;
    padding: 60px;
    background: #1a1f3a;
    border-radius: 24px;
    max-width: 400px;
    margin: 50px auto;
}
